Difference between revisions of "LlGetOwnerKey"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m (oops there is a prim one.) |
m |
||
Line 8: | Line 8: | ||
|spec | |spec | ||
|caveats= | |caveats= | ||
* Returns '''id''' if '''id''' is not found in the region or is not | * Returns '''id''' if '''id''' is not found in the region or is not a prim. | ||
** Owner information becomes unavailable ''immediately'' on derez or detach. For example, if | ** Owner information becomes unavailable ''immediately'' on derez or detach. For example, if a prim chats at derez or detach time, '''id''' can be returned even inside [[listen]] events of nearby objects. <sup>{{Jira|SVC-5095}}</sup> | ||
* Also returns '''id''' for avatars | * Also returns '''id''' for avatars, use [[llGetAgentSize]] instead to distinguish them from prims that do not exist. | ||
|constants | |constants | ||
|examples=<lsl>key owner; | |examples=<lsl>key owner; |
Revision as of 00:24, 29 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 | – | prim UUID that is in the same region |
Caveats
- Returns id if id is not found in the region or is not a prim.
- Also returns id for avatars, use llGetAgentSize instead to distinguish them from prims that do not exist.
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 |