Difference between revisions of "PRIM PHANTOM"
Jump to navigation
Jump to search
m |
m (Replaced <source> with <syntaxhighlight>) |
||
(One intermediate revision by one other user not shown) | |||
Line 25: | Line 25: | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams | ||
}} | }} | ||
|examples=< | |examples=<syntaxhighlight lang="lsl2">default | ||
{ | { | ||
state_entry() | state_entry() | ||
Line 43: | Line 43: | ||
} | } | ||
} | } | ||
}</ | }</syntaxhighlight> | ||
|constants= | |constants= | ||
{{LSL DefineRow||[[STATUS_PHANTOM]]|}} | {{LSL DefineRow||[[STATUS_PHANTOM]]|}} |
Latest revision as of 18:30, 27 September 2024
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_PHANTOM = 5;llSetPrimitiveParams
[ PRIM_PHANTOM, integer boolean ]• integer | boolean | – | TRUE enables, FALSE disables |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
- NOTE: This sets the entire object (linkset) when used in either function.
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_PHANTOM ]);Caveats
Related Articles
Constants
• | STATUS_PHANTOM |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams | |||
• | llSetStatus | |||
• | llGetStatus |
Events
• | changed |
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);
}
}
}