Difference between revisions of "LlDetectedName"

From Second Life Wiki
Jump to navigation Jump to search
(+example)
Line 9: Line 9:
|caveats={{HoverText|empty string|""}} might mean {{HoverText|NULL_KEY|"00000000-0000-0000-0000-000000000000"}} in this case...
|caveats={{HoverText|empty string|""}} might mean {{HoverText|NULL_KEY|"00000000-0000-0000-0000-000000000000"}} in this case...
|constants
|constants
|examples
|examples=<pre>
default
{
    touch_start(integer num)
    {
        llSay(0,llDetectedName(0);
    }
}
</pre>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 21:54, 30 May 2007

Summary

Function: string llDetectedName( integer number );
0.0 Forced Delay
10.0 Energy

Returns a string that is the name of detected object or avatar number

• integer number

number does not support negative indexes. Returns an empty string if number is not with in range.

Caveats

  • If number is out of bounds the script continues to execute without an error message.empty string might mean NULL_KEY in this case...

Examples

default
{
    touch_start(integer num)
    {
        llSay(0,llDetectedName(0);
    }
}

See Also

Articles

•  Detected

Deep Notes

Signature

function string llDetectedName( integer number );