LlSetStatus

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Function: llSetStatus( integer status, integer value );
45 Function ID
0.0 Delay
10.0 Energy

Sets the object status attributes indicated in the status mask to value

• integer status bit mask, STATUS_* flags
• integer value boolean
Constants Default Description
STATUS_PHYSICS 0x1 FALSE
STATUS_ROTATE_X 0x2 TRUE
STATUS_ROTATE_Y 0x4 TRUE
STATUS_ROTATE_Z 0x8 TRUE
STATUS_PHANTOM 0x10 FALSE
Constants Default Description
STATUS_SANDBOX 0x20 FALSE
STATUS_BLOCK_GRAB 0x40 FALSE
STATUS_DIE_AT_EDGE 0x80 FALSE
STATUS_RETURN_AT_EDGE 0x100 FALSE
STATUS_CAST_SHADOWS 0x200 TRUE
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.
    • Except for STATUS_BLOCK_GRAB, this only affects the prim the script is in, child prims in linked objects will not be affected.

Examples

default
{
    state_entry()
    {
        llSetStatus( STATUS_DIE_AT_EDGE | STATUS_PHYSICS, TRUE);
        llSetStatus( STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE);
    }
}

See Also

Functions

•  llGetStatus Gets the object status.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools