llGetStatus
function
Function syntax
integer llGetStatus(integer status// Single STATUS_* flag to check. Values: ObjectStatusParam
);- Returns
integer- Energy
- 10
Returns a boolean integer indicating whether the specified status flag status is enabled for the object.
Returns an integer equal to the status of the object.
integer result = llGetStatus(0);Specification
Section titled “Specification”
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* STATUS_DIE_AT_EDGE - If the object is rezzed by a script, the default is TRUE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
† STATUS_DIE_AT_NO_ENTRY - No-copy objects ignore this flag and remain in-world | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Caveats
Section titled “Caveats”- Status is an object attribute; all prims in an object share the same status.
STATUS_BLOCK_GRABonly really deals with the root prim. TrySTATUS_BLOCK_GRAB_OBJECTinstead.- Querying for STATUS_CAST_SHADOWS always returns
FALSEregardless of the setting. - Only one flag should be specified at a time. As of Second Life Server 2022-09-09.574921, if more than one flag is specified,
STATUS_DIE_AT_NO_ENTRYtakes priority, followed bySTATUS_BLOCK_GRAB_OBJECT,STATUS_DIE_AT_EDGE,STATUS_RETURN_AT_EDGE,STATUS_BLOCK_GRAB,STATUS_SANDBOX,STATUS_ROTATE_Z,STATUS_ROTATE_Y,STATUS_ROTATE_X,STATUS_PHANTOM, andSTATUS_PHYSICS.
Examples
Section titled “Examples”Example 1
default{ touch_start(integer total_number) { if (llGetStatus(STATUS_PHYSICS)) { llSay(0, "This object is physical"); } else { llSay(0, "This object is not physical"); } }}Known issues
Section titled “Known issues”From the issue templates included by the wiki article:
- SVC-5531 (bug): llGetStatus(STATUS_ROTATE_Z); will not work on child prims on freshly rezzed objects.
- SVC-1773 (bug): STATUS_BLOCK_GRAB only affects individual prims in a linkset
- SVC-4197 (fs): Create STATUS_TRANSLATE_* flags for llSetStatus
See also
Section titled “See also”Functions
Section titled “Functions”llSetStatus— Sets the object status.
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.