Difference between revisions of "LlDetectedName"

From Second Life Wiki
Jump to navigation Jump to search
(+example)
(oops...)
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>
<div style="margin:0.4em 0em 0.5em 0em;border:1px solid #AAAAAA;line-height:1.1em;font-family: Courier New, Courier, mono;padding-top: 0.5em;padding: 0.5em 0em 0.5em 0.5em;">
default
<div style="color: #A00000;">default</div>
{
}<div>{</div>
    touch_start(integer num)
<div>{{Tab}}<span style="color:steelblue;">touch_start</span>(<span style="color: #007700;">integer</span> num)</div>
    {
<div>{{Tab}{</div>
        llSay(0,llDetectedName(0);
<div>{{Tab|2}}<span style="color: #A00000">llSay</span><span style="color: black">(0,</span><span style="color:#A00000">llDetectedName</span>(0));</div>
    }
<div>{{Tab}}}</div>
}
<div>}</div>
</pre>
</div>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 23:24, 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 );