llGetLinkNumber
Revision as of 05:23, 2 October 2007 by Strife Onizuka (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetLinkNumber( );139 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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 does exceed llGetNumberOfPrims() when prim is last, object contains multiple prims, and no sitting avatars
Examples
default { state_entry() { llOwnerSay((string) llGetLinkNumber()); llOwnerSay((string) llGetNumberOfPrims()); } }
See Also
Functions
• | llGetKey | |||
• | llGetNumberOfPrims |