llGetLinkNumber
function ll.GetLinkNumber(): numberReturns the link number of the prim containing the script (0 means not linked, 1 the prim is the root, 2 the prim is the first child, etc.).
Returns the link number of the prim containing the script. 0 means no link, 1 the root, 2 for first child, etc.
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.GetLinkNumber().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llGetLinkNumber