Skip to content
lsl.devlsl.devLSL Dev

PRIM_PHANTOM

constant
Constant
integer PRIM_PHANTOM = 5;

Prim parameter [PRIM_PHANTOM, integer boolean] to get or set whether phantom status is enabled.

Constant groups

PrimParam · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

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

Example 1
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_PHANTOM, TRUE]); // makes the object phantom...
integer isPhantom = llList2Integer(llGetPrimitiveParams([PRIM_PHANTOM]), 0);
if( isPhantom == 1 )
10 collapsed lines
{
llSetText("Object is Phantom", <1, 1, 1>, 1.0);
}
else
{
llSetText("Object is Solid", <1, 1, 1>, 1.0);
}
}
}
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.