Difference between revisions of "LlGetOwnerKey"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> example)
m (fixe)
Line 1: Line 1:
{{Multi-lang}}{{LSL_Function
{{LSL_Function
|func_id=182|func_sleep=0.0|func_energy=10.0
|func_id=182|func_sleep=0.0|func_energy=10.0
|func=llGetOwnerKey|sort=GetOwnerKey
|func=llGetOwnerKey|sort=GetOwnerKey

Revision as of 13:12, 29 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

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

See Also

Functions

•  llKey2Name
•  llRequestAgentData

Deep Notes

Search JIRA for related Issues

Signature

function key llGetOwnerKey( key id );