Difference between revisions of "LlDetectedLinkNumber"

From Second Life Wiki
Jump to navigation Jump to search
(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

Summary

Function: integer llDetectedLinkNumber( integer number );

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.
All Issues ~ Search JIRA for related Bugs

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

Deep Notes

Search JIRA for related Issues

Signature

function integer llDetectedLinkNumber( integer number );