Skip to content
lsl.devlsl.devLSL Dev

llSetStatus

function
Function syntax
llSetStatus(
  1. integer status,// Bitmask representing the STATUS_* flag(s) to change. Values: ObjectStatusParam
  2. integer value// Boolean. If TRUE, enables the status; if FALSE, disables it.
);
Energy
10

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

How to use
llSetStatus(0, 0);
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
Example 1
default
{
state_entry()
{
llSetStatus( STATUS_DIE_AT_EDGE | STATUS_PHYSICS, TRUE);
llSetStatus( STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE);
}
}

From the issue templates included by the wiki article:

  • SVC-6549 (bug): llSetStatus can’t change STATUS_PHYSICS of an attachment despite the status being preserved between attach & drop
  • SVC-5531 (bug): llGetStatus(STATUS_ROTATE_Z); will not work on child prims on freshly rezzed objects.
  • SVC-1773 (bug): STATUS_BLOCK_GRAB only affects individual prims in a linkset
  • SVC-4197 (fs): Create STATUS_TRANSLATE_* flags for llSetStatus
  • SVC-5723 (fs): New constant STATUS_BLOCK_SIT
  • SCR-203 (nf): <code>STATUS_PARCEL_BOUND</code> status to prevent a physical object from being able to leave the bounds of the current parcel.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.