|
Bitt Toll
Registered User
Join date: 8 Jan 2007
Posts: 10
|
01-14-2007 22:09
What's the right way for an object containing script to communicate with the owner? I've seen that llOwnerSay is only useful for debug by the object creator. llWhisper seems like a hack. llSay just emits stuff that everyone nearby can hear.
Would running llResetScript on rez get the object to talk to whoever posesses it, or would it still talk to the creator?
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
01-14-2007 22:15
llOwnerSay will talk to the current owner, so after it's changed hands, it won't send messages to the creator. That's the best way to send messages to the owner, IMO.
If messages need to be sent when the owner (or anyone) is offline, llInstantMessge is the only thing I know that works. Or llEmail.
It's listeners that usually end up 'stuck' to the creator, if you set up the listener in state_entry, and don't update it on a CHANGED_OWNER. Or you set up an owner = llGetOwner(); variable in state_entry, and don't update it. If you open the listener only when needed (like on touch), and call llGetOwner, and close the listener when you're done with it, you should be fine.
|