Skip to content
lsl.devlsl.devLSL Dev

PRIM TEMP ON REZ

Looking for the current API? Open the PRIM_TEMP_ON_REZ reference →

Wiki description

Used to get or set the object's temporary status. It lives until the next garbage collection cycle (about 1 minute). Does not count against normal prim limits. There are limits to the number of temporary objects that can exist in a region and the garbage collector may run sooner than expected.

Caveats

  • The maximum temporary prims allowed are based on the regular prim limit:
    (regular_prim_limit - current_regular_prims) + minimum(0.5 * regular_prim_limit + 400, 1000)
    See this forum post and SVC-2380 for details.
  • The garbage collection timer is cumulative and cannot be reset. You can turn TEMP_ON_REZ off which stops the timer running but it will continue from where it left off if TEMP_ON_REZ is restored.
  • Meshes are different than ordinary Prims and Sculpts when set Temporary.
    They still count against the Parcel and Sim Prim Limits. See: http://wiki.secondlife.com/wiki/Mesh_Prim_Equivalence_test#Temporary_meshes

See also: functions

See also: events

History

Before SL 1.9 objects would only be recognized by the garbage collector as temporary if they were rezzed with the temporary status already set. Setting the attribute only effected the object the next time it was rezzed. With 1.9 this was changed so that changing this status flag effected the object immediately. The constant name however was not changed to reflect this functionality change.

Shared wiki helpers

The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.

Template:LSL PrimitiveParam Categorize

Original shared helper source (conditional wiki logic is not evaluated)
{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||{{#vardefine:hidden-text|{{#var:hidden-text}}
{{#ifexist:Template:LSLC{{#var:lang}}|
 {{LSLC{{#var:lang}}|PrimitiveParams}}
 {{LSLC{{#var:lang}}|PrimitiveParams/{{{1}}}}}
 {{LSLC{{#var:lang}}|{{{1}}}}}
|
 {{LSLC|PrimitiveParams{{#var:lang}}}}
 {{LSLC|PrimitiveParams/{{{1}}}{{#var:lang}}}}
 {{LSLC|{{{1}}}{{#var:lang}}}}
}}
}}}}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.