Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Prim_temp_on_rez

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
05-24-2006 13:51
I am trying to learn how certain functions work. Right now I am testing PRIM_TEMP_ON_REZ.
I rezzed a prim and put the following script it. When touched it chatted "1", so, based on what I read in the WiKi, I expected that in a minute of two it would disappear. But here is it several minutes later and it is still there. Tell me what I have misunderstood or done worng.




default
{
state_entry()
{
llSetPrimitiveParams([PRIM_TEMP_ON_REZ, TRUE]);
}

touch_start(integer total_number)
{
llOwnerSay((string)llGetPrimitiveParams([PRIM_TEMP_ON_REZ]));
}
}
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-24-2006 15:35
Um, I'd expect that to work. I noticed yesterday after playing with my wand that the items hung around for longer than expected, about 5 minutes rather than 90s or so. No idea why.
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
05-24-2006 17:42
From my understanding of this you need to take the object into your inventory with the temp_on_rez flag set and then rez the object (or have another object rez it via llRezObject) for it to become temporary and therefore disappear after approx 1 minute (or more as some people have discovered). Hence the _on_rez in temp_on_rez.

Just my impression though, the Wiki doesn't seem to mention this implicitly.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-24-2006 22:12
Looks like it's a bug. I just did a version of Ordinal's script and a prim that I set to temporary. The scripted one shows the temporary flag, but doesn't get cleaned up.

When you rez it (shift-drag or rez from inventory) it does work. Odd, because the flag in the edit pane is now called temporary.
Candide LeMay
Registered User
Join date: 30 Dec 2004
Posts: 538
05-24-2006 22:59
What nand said. It gets set temporary when you rez it.
_____________________
"If Mel Gibson and other cyberspace writers are right, one day the entire internet will be like Second Life." -- geldonyetich