Difference between revisions of "LlKey2Name"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 9: | Line 9: | ||
|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. | |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. | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
// Best viewed in Chat History (ctrl-h) | |||
default | |||
{ | |||
collision_start(integer a) | |||
{ | |||
llSay(0, "llKey2Name: " + llKey2Name(llDetectedKey(0)) + | |||
"\nllDetectedName: " + llDetectedName(0)); | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 18:31, 8 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llKey2Name( key id );210 | Function 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)); } }