Difference between revisions of "LlGetLinkNumber"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(no never exceeds, yes may equal, yes does equal in the test case of last prim of object with multiple prims but no sitting avatars) |
m (<lsl> example) |
||
Line 9: | Line 9: | ||
|caveats=*By design may equal [[llGetNumberOfPrims]], ''e.g.'', when prim is last, object contains multiple prims, and no sitting avatars | |caveats=*By design may equal [[llGetNumberOfPrims]], ''e.g.'', when prim is last, object contains multiple prims, and no sitting avatars | ||
|constants | |constants | ||
|examples= | |examples=<lsl>default | ||
< | |||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
Line 18: | Line 16: | ||
llOwnerSay((string) llGetNumberOfPrims()); | llOwnerSay((string) llGetNumberOfPrims()); | ||
} | } | ||
} | }</lsl> | ||
</ | |||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llGetKey]]}} | |also_functions={{LSL DefineRow||[[llGetKey]]}} |
Revision as of 18:14, 2 January 2008
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 may equal llGetNumberOfPrims, e.g., when prim is last, object contains multiple prims, and no sitting avatars
Examples
<lsl>default {
state_entry() { llOwnerSay((string) llGetLinkNumber()); llOwnerSay((string) llGetNumberOfPrims()); }}</lsl>
See Also
Functions
• | llGetKey | |||
• | llGetNumberOfPrims |