string llKey2Name(key id)
If the object
identified by the key id
is in the same simulator
as the object containing the script
, this function return
s their name. Otherwise, an empty string
) is returned. This can be misleading, because it cannot be distinguished from an object with an empty name (""
). See llGetObjectDetails
for a better function.
Only works on rezzed objects
, and textures
will return an empty string
for a (much slower) way to use the dataserver
to get the name of an agent even outside the sim
Note: there is no llName2Key
function. To get a key from a name, use sensors
or touch events
and the llDetected*
Alternatively, you can use the following external sources for llName2Key functionality, in alphabetic order:
Currently unavailable sources:
Note: This function works if someone can see the sim from an adjacent sim. V1.9
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.