Skip to content

llDetectedName

string llDetectedName(integer Number)

Returns the name of detected object or avatar number.

Returns the name of detected object number.

Returns empty string if Number is not a valid index.

Parameters
Number (integer)
default
{
touch_start(integer num_detected)
{
string name = llDetectedName(0);
llOwnerSay("Touched by " + name);
// name is the legacy name, as in "John Doe", or "John Resident" if the avatar has the default last name.
}
}
  • Returns NULL_KEY if the item index is not valid.
  • If the detected item is an avatar, the legacy name is returned (e.g., “John Doe” or “John Resident” if the avatar has the default last name).