Difference between revisions of "LlKey2Name"

From Second Life Wiki
Jump to: navigation, search
m (fixe)
Line 1: Line 1:
{{multi-lang}}{{LSL_Function/object|id|prim or avatar|sim=*}}{{LSL_Function
{{LSL_Function/object|id|prim or avatar|sim=*}}{{LSL_Function

Revision as of 13:21, 29 January 2008

Deletion Requested
The deletion of this article was requested for the following reason:

Template is no longer used and it's creator thinks it does not function properly.

If there is a need to discuss the deletion of this article, please add your comment(s) here.


Function: string llKey2Name( key id );

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

• key id

If id is not in the sim and has not been in it recently, an empty string is returned.


  • 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.
  • If the avatar is not in online and in the sim the script is running you must use dataserver and llRequestAgentData to get the avatars name from a key
All Issues ~ Search JIRA for related Bugs


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

See Also


•  llGetObjectDetails


•  Prim Attribute Overloading

Deep Notes

Search JIRA for related Issues


function string llKey2Name( key id );