Syntax
integer llGetStatus( integer status );
Forced delay: 0.0 seconds. Energy: 10.0.
Parameters
- integer status (bit mask)
- A single STATUS_* flag
Return value
Returns a boolean (an integer) equal to the status of the object.
Constants
|
|
| * 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
- Status is an object attribute; all prims in an object share the same status.
- Querying for STATUS_CAST_SHADOWS always returns FALSE regardless 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_ENTRY takes priority, followed by STATUS_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, and STATUS_PHYSICS.
Examples
default
{
touch_start(integer total_number)
{
if (llGetStatus(STATUS_PHYSICS))
{
llSay(0, "This object is physical");
}
else
{
llSay(0, "This object is not physical");
}
}
}
See also
Functions
Deep notes
Issues