From Second Life Wiki
|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
Temporary is an object property, when enabled the simulator will delete the object during it's next garbage collection cycle. This typically happens once a minute but can also be triggered if the parcel is full and an object is requested to be rezzed.
llSetLinkPrimitiveParamsFast( LINK_THIS, [ PRIM_TEMP_ON_REZ, integer boolean ]);
integer boolean = llList2Integer(llGetObjectDetails( key id, [ OBJECT_TEMP_ON_REZ ]), 0);
If an object is rezzed by another object, the newly rezzed object inherits the parent's temporary attribute. This however does not apply to attachments or objects that are being sat upon (such as vehicles).
Formally this feature could only be activated by rerezzing the object after setting the attribute, hence the name of the constants *_TEMP_ON_REZ. This however was changed with the release of SL 1.9 in 2006. The attribute is now interpreted to mean that the object should be deleted during the next garbage collection cycle.