LINK ROOT

From Second Life Wiki
Revision as of 14:24, 9 October 2023 by Frionil Fang (talk | contribs) (LINK_THIS is a safe alternative if the script is in the root, and only refers to the root)
Jump to navigation Jump to search

Description

Constant: integer LINK_ROOT = 1;

The integer constant LINK_ROOT has the value 1

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.
All Issues ~ Search JIRA for related Bugs

Related Articles

Deep Notes

Search JIRA for related Issues

Signature

integer LINK_ROOT = 1;