Don't click here unless you want to be banned.

LSL Wiki : llSetStatus

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-174-129-103-100.compute-1.amazonaws.com
llSetStatus(integer status, integer value)

Sets the status to value (TRUE/FALSE).

Use the following constants for status:
Flag Value Default Description
STATUS_PHYSICS 1 FALSE If value is TRUE, object moves physically.
STATUS_ROTATE_X 2 TRUE If value is FALSE, object doesn't rotate around local X axis.
STATUS_ROTATE_Y 4 TRUE If value is FALSE, object doesn't rotate around local Y axis.
STATUS_ROTATE_Z 8 TRUE If value is FALSE, object doesn't rotate around local Z axis.
STATUS_PHANTOM 16 FALSE If value is TRUE, object doesn't collide with other objects (is phantom).
STATUS_SANDBOX 32 FALSE If value is TRUE, object can't cross region boundaries or move more than 10m from its start location (and loses physical attribute).
STATUS_BLOCK_GRAB 64 FALSE If value is TRUE, object can't be grabbed and/or physically dragged. See llDetectedGrab.
Note: this doesn't affect whether or not a user is able to select the object using the editing tools.
STATUS_DIE_AT_EDGE 128 FALSE
(TRUE for objects created with llRezObject)
If value is TRUE, objects that reach the edge of the world just die rather than returning to the owner's inventory.
STATUS_RETURN_AT_EDGE 256 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_CAST_SHADOWS 512 TRUE PREVIEW: If set, object casts shadows on other objects (if shadows are enabled)

More than one status flag can be set or unset in one call by ORing the flags together:
llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, FALSE);
This turns STATUS_ROTATE_X, STATUS_ROTATE_Y, and STATUS_ROTATE_Z off at the same time.

To determine which status flags have been set, see llGetStatus.

Notes:

Many of the status flags set by llSetStatus can also be set by llSetPrimitiveParams and retrieved with llGetPrimitiveParams. However, be aware llSetPrimitiveParams and llGetPrimitiveParams use different constants than llSetStatus. You can't substitute a constant from llSetStatus for one from llGetPrimitiveParams or vice-versa.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions
There are 3 comments on this page. [Display comments/form]