|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
02-27-2008 02:13
Say I'm making a HUD that uses llSay to send a message to another object on a specific channel, the other object is listening on that channel. When the HUD says something it seems that it does not send the HUD owners key with it so the object receiving cannnot use llGetOwner to check it's the owner using that channel via the HUD... is this correct.. or are my experiments flawed?
If this is true, how would I work around this? I am sure there must be a simple way? Can you check ownership of an object via llListen?
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
02-27-2008 02:23
From: Ee Maculate When the HUD says something it seems that it does not send the HUD owners key with it Of course not. A listen event handler is passed the key of the object (or agent) speaking, not the object's owner's. Just because the object is attached to an agent's HUD doesn't mean it speaks "for" the owner. From: someone Can you check ownership of an object via llListen? llGetOwnerKey( id );
|
|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
02-27-2008 03:31
Ah! Perfect.... Thanks 
|
|
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
|
02-27-2008 05:21
I use
if (id == llGetOwner() || llGetOwnerKey(id) == llGetOwner())
This allows either the owner to use a chat command, or to issue the command via a HUD.
_____________________
Though this be madness, yet there is method in't. -- William Shakespeare Warburton's Whimsies: In SLApez.biz
|