The integer constant PRIM_PHANTOM has the value 5

Used to get or set the object's phantom status.

Syntax

integer PRIM_PHANTOM = 5;

Usage

[ PRIM_PHANTOM, integer boolean ]

integerbooleanTRUE enables, FALSE disables

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams([ PRIM_PHANTOM ]);

Returns the list [ integer boolean ]

integerbooleanTRUE enables, FALSE disables

Examples

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_PHANTOM, TRUE]); // makes the object phantom...
        
        integer isPhantom = llList2Integer(llGetPrimitiveParams([PRIM_PHANTOM]), 0);
        
        if( isPhantom == 1 )
        {
            llSetText("Object is Phantom", <1, 1, 1>, 1.0);
        }
        
        else
        {
            llSetText("Object is Solid", <1, 1, 1>, 1.0);
        }
    }
}

See also

Constants

Functions

Events