llDetectedOwner
function
Function syntax
key llDetectedOwner(integer number// Index of the detection information.
);- Returns
key- Energy
- 10
Returns the key (UUID) of the owner of the detected object specified by number. Returns an invalid key if number is not a valid index.
Returns an empty key if number does not relate to a valid sensed object
key result = llDetectedOwner(0);Examples
Section titled “Examples”Example 1
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.
See also
Section titled “See also”Functions
Section titled “Functions”llGetOwnerKey—llGetOwnerKey(llDetectedKey(number))is the same asllDetectedOwner(number)only if the detected object is in the same region.llGetOwner
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.