integer llDetectedLinkNumber( integer number );
Forced delay: 0.0 seconds. Energy: 10.0.
number does not support negative indexes.
For touch and collision categories of events only.
Returns a link_number (an integer) of the triggered event. If not supported by the event, returns zero.
llDetected* functions only work if called from within Detection events (collision, collision_start, collision_end, sensor, touch, touch_start, touch_end) or in functions called by Detection events. They will fail silently and return unusable values if called during other events.
default
{
// Drop this script into the root prim of of a build
// Touch any prim to learn its link number
touch_start(integer num_detected)
{
llOwnerSay("Link number clicked: " + (string)llDetectedLinkNumber(0) );
}
}