LSL Wiki Mirror 10-5-2006: llGetStatus

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
integer llGetStatus(integer status)

Returns the value of status, which will be one of the following constants:

Flag Default Description
STATUS_BLOCK_GRAB FALSE If TRUE, object can't be grabbed and physically dragged.
STATUS_DIE_AT_EDGE FALSE If TRUE, objects that reach the edge of the world just die rather than returning to the owner's inventory.
STATUS_PHANTOM FALSE If TRUE, object doesn't collide with other objects.
STATUS_PHYSICS FALSE If TRUE, object moves physically.
STATUS_RETURN_AT_EDGE FALSE If set, objects created with llRezObject will be returned to inventory instead of deleted when going off-world; overrides STATUS_DIE_AT_EDGE.
STATUS_ROTATE_X TRUE If FALSE, object doesn't rotate around local X axis.
STATUS_ROTATE_Y TRUE If FALSE, object doesn't rotate around local Y axis.
STATUS_ROTATE_Z TRUE If FALSE, object doesn't rotate around local Z axis.
STATUS_SANDBOX FALSE If TRUE, object can't cross region boundaries or move more than 10 meters from its start location.

Note: Trying to get multiple status flags at the same time by OR'ing them will return only the value of the status in the most significant bit requested, ignoring the values in lesser bits. If you need more than one, do it one at a time.

Example:
integer physics_on = llGetStatus(STATUS_PHYSICS); // this will return TRUE if STATUS_PHYSICS == TRUE.

See also llSetStatus and llGetPrimitiveParams.


Functions | Constants | Prim
There is no comment on this page. [Display comments/form]