Skip to content
lsl.devlsl.devLSL Dev

LINK_ROOT

constant
Constant
integer LINK_ROOT = 1;

Refers to the root prim of the linkset.

Constant groups

Link · Links

Other Link values (1)
Other Links values (4)

Targets the root prim in the linkset.

  • 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.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LINK ROOT, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.