LlGetStatus

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Summary

Buggy
Function: integer llGetStatus( integer status );
46 Function ID
0.0 Delay
10.0 Energy

Returns an integer boolean equal to the status of the object.

• integer status STATUS_* flag
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.

Important Issues

~ Search JIRA for related Bugs
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    STATUS_BLOCK_GRAB only affects individual prims in a linkset

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

•  llSetStatus Sets the object status.

Deep Notes

Issues

~ Search JIRA for related Issues
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    STATUS_BLOCK_GRAB only affects individual prims in a linkset
New Feature - A new feature of the product, which has yet to be developed. Open - The issue is open and ready for the assignee to start work on it.    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.
In other languages