LINK ROOT: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Frionil Fang (talk | contribs) missing desc |
||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value=1 | |value=1 | ||
|desc | |desc=Targets the root prim in the linkset. | ||
|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 <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= | |||
{{LSL DefineRow||[[LINK_ALL_CHILDREN]]|}} | |||
{{LSL DefineRow||[[LINK_ALL_OTHERS]]|}} | |||
{{LSL DefineRow||[[LINK_SET]]|}} | |||
{{LSL DefineRow||[[LINK_THIS]]|}} | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llBreakLink]]|}} | {{LSL DefineRow||[[llBreakLink]]|}} | ||
{{LSL DefineRow||[[llGetLinkKey]]|}} | |||
{{LSL DefineRow||[[llGetLinkName]]|}} | {{LSL DefineRow||[[llGetLinkName]]|}} | ||
{{LSL DefineRow||[[llMessageLinked]]|}} | {{LSL DefineRow||[[llMessageLinked]]|}} | ||
{{LSL DefineRow||[[llSetLinkAlpha]]|}} | {{LSL DefineRow||[[llSetLinkAlpha]]|}} | ||
{{LSL DefineRow||[[llSetLinkColor]]|}} | {{LSL DefineRow||[[llSetLinkColor]]|}} | ||
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}} | |||
{{LSL DefineRow||[[llSetLinkPrimitiveParamsFast]]|}} | |||
|events= | |events= | ||
{{LSL DefineRow||[[link_message]]|}} | {{LSL DefineRow||[[link_message]]|}} | ||
|cat1=Link | |cat1=Link | ||
|cat2 | |cat2=Link Message | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} | ||
Latest revision as of 17:09, 28 October 2023
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer LINK_ROOT = 1;The integer constant LINK_ROOT has the value 1
Targets the root prim in the linkset.
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 |