|
Woody Blair
Registered User
Join date: 7 Feb 2004
Posts: 18
|
10-04-2006 15:12
Assuming that an avatar tries to rez a scripted vehicle in an place where either scripts are not allowed by the owner or where Linden stops all scripts like they did the other nite during the grid attack, is it possible that when the avatar takes the vehicle back into inventory that it goes in with the script turned off. This would make the vehicle unusable until the avatar resets or restarts the script, and this has happened in a few cases with my products and I cant figure out how just yet. The script in each object currently does not have a on_rez, reset, should it? Will that fix this problem? Any help would be very much appreciated, thx!
|
|
Lexi Foley
Registered User
Join date: 1 Mar 2006
Posts: 43
|
10-05-2006 04:18
I think the llReset on rez is sertainly a good start, alway good when you sell things,, if there are paramieters that have anny thing to do whit 'owner' its always a good idea to use the reset on rez. if you have muliple scripts maybe its more handy to put in a little script, that uses the llResetOtherScript, on rez, ehmm in second thought that might as well be in anny script you allready have in it.
Greetings Lexi Foley
|
|
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
|
10-05-2006 18:47
Hi, Woody,
There's no reason you can't use llResetScript() in on_rez(integer foo). I use it in all my current vehicles, just to make sure that each rez gives the user a fresh start. Of course, as Lexi kinda alludes to, it is a good idea to walk through your script and make sure that resetting the script prior to use won't bork anything. As in, will resetting the script destroy any user customization?
For example, if your car has a user-configurable hydraulics level that jacks the car up, will this custom setting be lost? I find that using a HUD to store customization is a reasonably efficient way to handle it. Good luck!
|
|
Woody Blair
Registered User
Join date: 7 Feb 2004
Posts: 18
|
10-05-2006 21:03
Thank you both for your feedback and advice, I have added the on_rez reset and we will see what happens now., thanks again!
|