Difference between revisions of "LlDetectedLinkNumber"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(added example) |
|||
Line 10: | Line 10: | ||
|caveats=*Will not work reliably with [[llVolumeDetect]]. | |caveats=*Will not work reliably with [[llVolumeDetect]]. | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
default | |||
{ | |||
touch_start(integer num_detected) | |||
{ | |||
integer i = 0; | |||
for(; i<num_detected; ++i) | |||
llWhisper(0, "Link number clicked: " + (string)llDetectedLinkNumber(i)); | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 19:28, 30 August 2007
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 |