LlGetStatus - Second Life Wiki

LlGetStatus

From Second Life Wiki

Jump to: navigation, search

Contents

Summary

Function: integer llGetStatus( integer status );

Returns an integer boolean equal to the status of the object.

• integer status STATUS_* flag
Constants Default Description
STATUS_PHYSICS]] 0x001 FALSE Object is physical
STATUS_ROTATE_X 0x002 TRUE Can turn along this axis
STATUS_ROTATE_Y 0x004 TRUE Can turn along this axis
STATUS_ROTATE_Z 0x008 TRUE Can turn along this axis
STATUS_PHANTOM]] 0x010 FALSE Object is phantom
STATUS_SANDBOX 0x020 FALSE Keep object within 10 meters and in the same region
Constants Default Description
STATUS_BLOCK_GRAB 0x040 FALSE Prevent click-and-drag movement on the root or only prim
STATUS_DIE_AT_EDGE 0x080 FALSE delete and do not return object if it goes off world
STATUS_RETURN_AT_EDGE 0x100 FALSE return object to owner if it goes off world
STATUS_CAST_SHADOWS 0x200 TRUE not currently used
STATUS_BLOCK_GRAB_OBJECT 0x400 FALSE Prevent click-and-drag movement on all prims in the object
STATUS_DIE_AT_EDGE - If the object is rezzed by a script, the default is TRUE

Caveats

Status is an object attribute; all prims in an object share the same status.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   llGetStatus(STATUS_ROTATE_Z); will not work on child prims on freshly rezzed objects.

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

•  llSetStatus Sets the object status.

Deep Notes

All Issues

~ Search JIRA for related Issues
   llGetStatus(STATUS_ROTATE_Z); will not work on child prims on freshly rezzed objects.
   STATUS_BLOCK_GRAB only affects individual prims in a linkset
   Create STATUS_TRANSLATE_* flags for llSetStatus
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.