Difference between revisions of "LlDetectedKey"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 10: Line 10:
|caveats
|caveats
|constants
|constants
|examples=
|examples=<pre>
default
default
{
{
Line 17: Line 17:
         llSay(0, "The key to who touched me is: " +(string)llDetectedKey());
         llSay(0, "The key to who touched me is: " +(string)llDetectedKey());
     }
     }
}
}</pre>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 08:46, 27 May 2007

Summary

Function: key llDetectedKey( integer number );

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

Examples

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

See Also

Articles

•  Detected

Deep Notes

Search JIRA for related Issues

Signature

function key llDetectedKey( integer number );