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

ConstantsValueDefaultDescription
STATUS_PHYSICS0x001FALSEObject is physical
STATUS_ROTATE_X0x002TRUECan turn along this axis (physical objects only)
STATUS_ROTATE_Y0x004TRUECan turn along this axis (physical objects only)
STATUS_ROTATE_Z0x008TRUECan turn along this axis (physical objects only)
STATUS_PHANTOM0x010FALSEObject is phantom
STATUS_SANDBOX0x020FALSEKeep object within 10 meters and in the same region
STATUS_BLOCK_GRAB0x040FALSEPrevent click-and-drag movement on the root prim
ConstantsValueDefaultDescription
STATUS_DIE_AT_EDGE0x080FALSE*Delete and do not return object if it goes off world
STATUS_RETURN_AT_EDGE0x100FALSEReturn object to owner if it goes off world
STATUS_CAST_SHADOWS0x200TRUEnot currently used
STATUS_BLOCK_GRAB_OBJECT0x400FALSEPrevent click-and-drag movement on all prims in the object
STATUS_DIE_AT_NO_ENTRY0x800FALSE†Delete and do not return object if it cannot enter a parcel
* 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

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