function
Function syntax
key llDetectedKey(integer number// Index of the detection information.
);- Returns
key- Energy
- 10
Returns an empty key if number does not correspond to a valid sensed object or avatar. Returns the key (UUID) of the detected object or avatar specified by number, or NULL_KEY if number is not a valid index.
Returns a key that is the UUID of the detected object or avatar number.
key result = llDetectedKey(0);Examples
Section titled “Examples”Example 1
default{ touch_start(integer num_detected) { llSay(0, "touch_start event: key of avatar touching: " + (string) llDetectedKey(0) ); }}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.