Pru Costello
Not My President
Join date: 5 Jun 2005
Posts: 25
|
07-28-2005 08:11
I'm making a gadget that does just about everything. I've made a script that makes me fly faster that works and i've tested it on objects that only have that script on it but for some reason when i put the script in my gadget it wont work... ne idea how to fix this if there is a way at all? 
|
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
maybe
07-28-2005 09:38
I am not sure what every gadget you have in the object but it could be another script is also trying to take your controls or work with your avatar in some way. This script may be taking the controls away from the fly script.
The best way of setting this up would be a master script that would listen and take controls and such. then it can call the appropriate script to do the intended job useing the llMessageLinked.
This would allow for only one listen or what ever you use to control the scripts.
This may make it so only 1 gadget script can work at one time depending on how you code them.
First though look to see if another gadget script is trying to work with the same controls or permissions.
Without more specifics I am afraid that is the best I can come up with.
|
Pru Costello
Not My President
Join date: 5 Jun 2005
Posts: 25
|
07-28-2005 11:49
i've made it so only the speed script requires any permissions at all, it still wont do anything, i can't use llSetBuoyancy or llApplyImpulse at all in the scripts.
most of the scripts are just sensors, listeners, rezzing and there is one script that does llMoveToTarget which is in the same script as the flying script, the move to target is usually inactive so this shouldn't effect it.
i really can't see what's wrong with it.
|
Champie Jack
Registered User
Join date: 6 Dec 2003
Posts: 1,156
|
07-28-2005 12:50
given what you've told us, the only recommendation I can make is:
1. Put Only your flying script in the gadget. 2. Check to make sure it works properly. 3. Add one additional script to your gadget and test all functions. 4. Repeat until you add a script that breaks something.
|