The integer constant PRIM_PHANTOM has the value 5
Used to get or set the object's phantom status.
integer PRIM_PHANTOM = 5;
[ PRIM_PHANTOM, integer boolean ]
| integer | boolean | TRUE enables, FALSE disables |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams([ PRIM_PHANTOM ]);
Returns the list [ integer boolean ]
| integer | boolean | TRUE enables, FALSE disables |
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);
}
}
}