Difference between revisions of "LlGetOwnerKey"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(It is other objects that cannot retrieve the owner information, an object can return its own llGetOwnerKey even in attach.) |
|||
Line 5: | Line 5: | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the owner of | |return_text=that is the owner of prim '''id''' | ||
|spec | |spec | ||
|caveats= | |caveats= | ||
* Returns '''id''' if '''id''' is not found in the region or is not an object. | * Returns '''id''' if '''id''' is not found in the region or is not an object. | ||
** Owner information becomes unavailable ''immediately'' on derez or detach. For example, if an object chats at derez or detach time, '''id''' can be returned even inside [[listen]] events of nearby objects. <sup>{{Jira|SVC-5095}}</sup> | ** Owner information becomes unavailable ''immediately'' on derez or detach. For example, if an object chats at derez or detach time, '''id''' can be returned even inside [[listen]] events of nearby objects. <sup>{{Jira|SVC-5095}}</sup> | ||
* '''id''' | * llGetOwnerKey('''id''') always returns '''id''' for avatars. Consider using [[llGetAgentSize]] for avatar tests. | ||
|constants | |constants | ||
|examples=<lsl>key owner; | |examples=<lsl>key owner; | ||
Line 41: | Line 41: | ||
|also_events | |also_events | ||
|also_articles | |also_articles | ||
|notes | |notes | ||
|cat1=Owner | |cat1=Owner | ||
|cat2=Key | |cat2=Key |
Revision as of 23:13, 28 September 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: key llGetOwnerKey( key id );182 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a key that is the owner of prim id
• key | id | – | group, avatar or prim UUID that is in the same region |
Caveats
- Returns id if id is not found in the region or is not an object.
- llGetOwnerKey(id) always returns id for avatars. Consider using llGetAgentSize for avatar tests.
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 | |||
• | llGetObjectDetails | |||
• | llGetOwner |