Difference between revisions of "LlKey2Name"

From Second Life Wiki
Jump to navigation Jump to search
m
(sadly, this can not detect the moment when an agent exits the sim)
Line 3: Line 3:
|sort=Key2Name|func=llKey2Name
|sort=Key2Name|func=llKey2Name
|return_type=string|p1_type=key|p1_name=id
|return_type=string|p1_type=key|p1_name=id
|func_footnote=If '''id''' is not in the sim, an empty string is returned.
|func_footnote=If '''id''' is not in the sim and has not been in it recently, an empty string is returned.
|func_desc
|func_desc
|return_text=that is the name of the prim / avatar '''id'''.
|return_text=that is the name of the prim / avatar '''id'''.

Revision as of 23:22, 5 December 2007

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.

Summary

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.

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.
All Issues ~ Search JIRA for related Bugs

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

Search JIRA for related Issues

Signature

function string llKey2Name( key id );