Skip to content

PRIM_PHANTOM

constant
Constant
integer PRIM_PHANTOM = 5;
Set with llSetLinkPrimitiveParamsFast
PRIM_PHANTOM, integer boolean
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_PHANTOM → integer boolean

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

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

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

PRIM_PHANTOM, integer boolean

When used with llSetLinkPrimitiveParamsFast

  • NOTE: This sets the entire object (linkset) when used in either function.
llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_PHANTOM ]);

Returns the same values, in the same order.

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.