Difference between revisions of "LINK ROOT"
Jump to navigation
Jump to search
Kizmut Smit (talk | contribs) (+primparams) |
Frionil Fang (talk | contribs) (LINK_THIS is a safe alternative if the script is in the root, and only refers to the root) |
||
Line 7: | Line 7: | ||
*In a single prim object LINK_ROOT will not refer to the root prim! | *In a single prim object LINK_ROOT will not refer to the root prim! | ||
**If your script needs to work in single and multiprim objects, instead of <code>[[LINK_ROOT]]</code>, use either <code>([[llGetLinkNumber]]() != 0)</code> or <code>(!![[llGetLinkNumber]]())</code> | **If your script needs to work in single and multiprim objects, instead of <code>[[LINK_ROOT]]</code>, use either <code>([[llGetLinkNumber]]() != 0)</code> or <code>(!![[llGetLinkNumber]]())</code> | ||
**Alternatively, [[LINK_THIS]] works in both single-prim and multiprim objects, assuming the script is inside the root prim and only needs to refer to itself. | |||
|examples | |examples | ||
|constants= | |constants= |
Revision as of 13:24, 9 October 2023
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Caveats
- In a single prim object LINK_ROOT will not refer to the root prim!
- If your script needs to work in single and multiprim objects, instead of
LINK_ROOT
, use either(llGetLinkNumber() != 0)
or(!!llGetLinkNumber())
- Alternatively, LINK_THIS works in both single-prim and multiprim objects, assuming the script is inside the root prim and only needs to refer to itself.
- If your script needs to work in single and multiprim objects, instead of
Related Articles
Constants
• | LINK_ALL_CHILDREN | |||
• | LINK_ALL_OTHERS | |||
• | LINK_SET | |||
• | LINK_THIS |
Functions
• | llBreakLink | |||
• | llGetLinkKey | |||
• | llGetLinkName | |||
• | llMessageLinked | |||
• | llSetLinkAlpha | |||
• | llSetLinkColor | |||
• | llSetLinkPrimitiveParams | |||
• | llSetLinkPrimitiveParamsFast |
Events
• | link_message |