Difference between revisions of "LlDetectedKey"

From Second Life Wiki
Jump to navigation Jump to search
Line 15: Line 15:
     touch_start(integer number)
     touch_start(integer number)
     {
     {
         llSay(0, "The key to who touched me is: " +(string)llDetectedKey());
         llOwnerSay("The key to who touched me is: " +(string)llDetectedKey(0));
     }
     }
}</pre>
}</pre>

Revision as of 02:51, 13 June 2007

Summary

Function: key llDetectedKey( integer number );
0.0 Forced Delay
10.0 Energy

Returns a key that is the UUID of the detected object or avatar number.

• integer number

number does not support negative indexes. Returns an empty key if number is not valid sensed object or avatar.

Caveats

  • If number is out of bounds the script continues to execute without an error message.

Examples

default
{
    touch_start(integer number)
    {
        llOwnerSay("The key to who touched me is: " +(string)llDetectedKey(0));
    }
}

See Also

Articles

•  Detected

Deep Notes

Signature

function key llDetectedKey( integer number );