Difference between revisions of "LlGetOwnerKey"

From Second Life Wiki
Jump to navigation Jump to search
(add cat...=Key for functions returning each kind of key, like we did for String long ago)
Line 40: Line 40:
|notes
|notes
|cat1=Owner
|cat1=Owner
|cat2
|cat2=Key
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 21:41, 11 January 2008

Summary

Function: key llGetOwnerKey( key id );

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 ^_^");
        }
    }
}

See Also

Functions

•  llKey2Name
•  llRequestAgentData

Deep Notes

Search JIRA for related Issues

Signature

function key llGetOwnerKey( key id );