llDetectedLinkNumber
integer llDetectedLinkNumber(integer Number)Returns the link position of the triggered event for touches and collisions only.
0 for a non-linked object, 1 for the root of a linked object, 2 for the first child, etc.
Parameters
-
Number(integer)
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) ); }}See Also
Section titled “See Also”- llDetectedTouchFace
- touch_start
- touch
- touch_end
- collision_start
- collision
- collision_end