User:Chaser Zaks/sandbox
Return value notes
Returns a key that is the owner of prim
idCaveats
- Returns
idifidis not found in the region or is not a prim. - Also returns
idfor avatars, use llGetAgentSize instead to distinguish them from prims that do not exist. - Returns NULL_KEY if the id passed in is not a valid key
Examples
default
{
state_entry()
{
// listen to anything talking on channel 1
llListen(1, "", NULL_KEY, "");
// Type "/1 " + message (such as "/1 poke") to chat 'message' on channel 1.
}
listen(integer channel, string name, key id, string message)
{
key ownerOfThisObject = llGetOwner();
key ownerOfSpeaker = llGetOwnerKey(id);
// if whoever is talking is the owner of this object
// or if the owner of the object talking is the owner of this object
if (ownerOfSpeaker == ownerOfThisObject)
{
llOwnerSay("'" + name + "' has the same owner as me ^_^");
}
}
}See also: functions
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Original shared helper source (conditional wiki logic is not evaluated)
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if:
{{#vardefine:p_{{{1|none}}}_desc|{{#if:{{{object|}}}|[[object]]|[[prim]]}} {{HoverLink|UUID|Universally Unique Identifier}} {{#if:{{{sim|}}}|that is in the same [[region]] {{#switch:{{{sim|}}}|*=|#default={{{sim|}}}}}
}}}}
{{#vardefine:p_{{{1|none}}}_hover|{{#if:{{{object|}}}|object|prim}} UUID {{#if:{{{sim|}}}|that is in the same region {{#switch:{{{sim|}}}|*=|#default={{{sim|}}}}}
}}}}
}}<noinclude>
{| {{Prettytable}}
|-{{Hl2}}
!var
!value
|-
|desc
|{{#var:p_{{{1|none}}}_desc}}
|-
|hover
|{{#var:p_{{{1|none}}}_hover}}
|}
</noinclude>Additional wiki content
DISPLAYTITLE:farts:
{{DISPLAYTITLE:farts}}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.