llDetectedLinkNumber
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llDetectedLinkNumber( integer number );40 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the link number of the triggered event. If not supported by the event, returns zero.
• integer | number |
number does not support negative indexes. For touch and collision categories of events only.
Caveats
- If number is out of bounds the script continues to execute without an error message.
- Will not work reliably with llVolumeDetect.
Examples
default { touch_start(integer num_detected) { integer i = 0; for(; i<num_detected; ++i) llWhisper(0, "Link number clicked: " + (string)llDetectedLinkNumber(i)); } }
See Also
Events
• | touch_start | |||
• | touch | |||
• | touch_end | |||
• | collision_start | |||
• | collision | |||
• | collision_end |
Articles
• | Detected |