|
Mannie Kohime
Registered User
Join date: 11 May 2007
Posts: 1
|
05-19-2007 16:27
I have written my first scrips which puts some text above your head and allows you to set the colour etc... I have placed 'llListen(0, "", llGetOwner(), ""  ;' within state_entry and it works fine if I use it. However if I give the script to someone else then it still responds to me and not the new owner. I have found http://stonedchipmunkrocks.googlepages.com/%5Bbeginner%5D-chapter10:listens which mentions this. What is the best way to overcome this problem? Reading some other posts here I also intend to change the default channel to something else as it will stop everyone seeing my commands and reduce lag at the same time.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-19-2007 16:39
reason it wont listen to them is becuase of get owner...
it only fires when the state is first started and never again, so when you hand it off to someone it still thinks your the owner becuase the listener never gets reset to listen to the new owner
the most common way to fix this isto have a on_rez(integer rez) event and a call to reset script, this way everytime the object is ploped in world the script will reset and state entery is ran
|