Difference between revisions of "LlKey2Name"

From Second Life Wiki
Jump to navigation Jump to search
Line 21: Line 21:
</pre>
</pre>
|helpers
|helpers
|also_functions
|also_functions=
{{LSL DefineRow||[[llGetObjectDetails]]}}
|also_events
|also_events
|also_articles
|also_articles=
{{LSL DefineRow||[[Prim Attribute Overloading]]}}
|also_tests
|also_tests
|notes
|notes

Revision as of 07:50, 30 August 2007

Summary

Function: string llKey2Name( key id );
0.0 Forced Delay
10.0 Energy

Returns a string that is the name of the prim / avatar id.

• key id

If id is not in the sim, an empty string is returned.

Caveats

  • It is difficult to tell the difference between an object that has a name that is an empty string and an object that is not in the sim.

Examples

// Best viewed in Chat History (ctrl-h)
default
{
    collision_start(integer a)
    {
        llSay(0, "llKey2Name: " + llKey2Name(llDetectedKey(0)) +
               "\nllDetectedName: " + llDetectedName(0));
    }
}

See Also

Functions

•  llGetObjectDetails

Articles

•  Prim Attribute Overloading

Deep Notes

Signature

function string llKey2Name( key id );