LlSetStatus
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
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 |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| † 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.
Important Issues
~ Search JIRA for related Bugs| | | SVC-1773 | [c] | STATUS_BLOCK_GRAB only affects individual prims in a linkset |
Examples
default { state_entry() { llSetStatus( STATUS_DIE_AT_EDGE | STATUS_PHYSICS, TRUE); llSetStatus( STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE); } }
If STATUS_BLOCK_GRAB is to be set TRUE for all prims in a linked set, the following script can be run in each prim to set the flag:
default { state_entry() { llSetStatus(STATUS_BLOCK_GRAB,TRUE); // Set 'No grab' flag on prim. llOwnerSay("'No Grab' was set!"); llRemoveInventory(llGetScriptName()); } }See JIRA comment SVC-1773 for more information until resolved.
Deep Notes
Issues
~ Search JIRA for related Issues| | | SVC-1773 | [c] | STATUS_BLOCK_GRAB only affects individual prims in a linkset | |
| | | SVC-4197 | [c] | 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.

