Skip to content

llDetectedOwner

key llDetectedOwner(integer Number)

Returns the key of detected object's owner.

Returns invalid key if Number is not a valid index.

Parameters
Number (integer)
default
{
collision_start(integer num_detected)
{
string output =
"\nkey of colliding object's owner ... or the colliding avatar: " + (string)llDetectedOwner(0)
+ "\nkey of this object's owner: " + (string)llGetOwner()
+ "\nname of colliding object/avatar: " + llDetectedName(0)
+ "\nkey of colliding object/avatar: " + (string)llDetectedKey(0)
+ "\nkey of the prim containing this script: " + (string)llGetKey()
+ "\nkey of this object's root prim: " + (string)llGetLinkKey(LINK_ROOT);
llSay(0, output);
}
}

If the detected type is an avatar, the key of that avatar is returned. Avatars are owned by themselves. llGetOwnerKey works the same way with regards to avatar UUIDs.