Re: secondlifescripters Digest, Vol 42, Issue 14

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: secondlifescripters Digest, Vol 42, Issue 14

by Indeterminate Schism :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First, be assured that you're not the first and won't be the last to get caught by this.  llGetOwner() is a common 'gotcha'.  Apart from re-reading who the owner is you have to watch out for llListen() and other functions that have ALREADY been set-up to listen to (the old) owner.
 
As other people have said the simple answer is to reset on a change of ownership.  I like simple, but some people think it's lazy and if it means you have to re-read configurations from notecard or, worse, will lose transient settings then you just have to make sure you cancel and re-initialise all the things that are tracking the owner.  These may include multiple listens, sensor, etc
 
NB: Most of these are cleared by a change of state so you might like to have a 'clear' state and (re)initialise all your listens, etc. on state_entry in default.
 
Roughly: default -> state_entry -> listen ... change -> clear -> default (go back to the start)

_______________________________________________
Click here to unsubscribe or manage your list subscription:
https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters