LlGetOwnerKey
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: key llGetOwnerKey( key id );| 182 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a key that is the owner of object id
| • key | id |
If id is not in the same sim then id is returned.
Examples
key owner; default { state_entry() { owner = llGetOwner(); llListen(1, "", "", ""); } on_rez(integer a) { owner = llGetOwner(); } listen(integer chan, string name, key id, string msg) { if(llGetOwnerKey(id) == owner) {//Only triggers if what spoke is the owner or if they share the same owner llOwnerSay(name + " has the same owner as me ^_^"); } } }
Notes
When used on an avatars key, the key of that avatar is returned again. So avatars are owned by themself.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

