Jump to content

LlGetLinkNumber

From OSgrid Wiki
Revision as of 22:32, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: integer llGetLinkNumber( );== Returns an integer that is the link number of the prim containing the script. <br><br> 0 means the prim not linked, 1 the prim is the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: integer llGetLinkNumber( );

Returns an integer that is the link number of the prim containing the script.

0 means the prim not linked, 1 the prim is the root, 2 the prim is the first child, etc.
Caveats
• By design may equal llGetNumberOfPrims, e.g., when prim is last, object contains multiple prims, and no sitting avatars

Examples

<source lang="lsl">

default {

   state_entry()
   {
       llOwnerSay((string) llGetLinkNumber());
       llOwnerSay((string) llGetNumberOfPrims());
   }

} </source>


See Also
Functions
• llGetKey
• llGetNumberOfPrims