conrad Evanier Posted April 4, 2011 Share Posted April 4, 2011 Hi just wondering is there a script that can be put in an object that will restart ALL scripts in that object when clicked?? Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted April 4, 2011 Share Posted April 4, 2011 you could add llResetOtherScript and loop through the inventory Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted April 4, 2011 Share Posted April 4, 2011 There is llResetOtherScript() (http://wiki.secondlife.com/wiki/LlResetOtherScript) but that only works within a single prim. It would be possible to build a script-injector around this to work in all prims in the object but it's never going to be as easy as just using menus! Link to comment Share on other sites More sharing options...
conrad Evanier Posted April 4, 2011 Author Share Posted April 4, 2011 Very helpful iv used llResetOtherScript in a menu option and works well. If you had multiple prims all with scripts in you could use this in a menu to reset each could be very handy Link to comment Share on other sites More sharing options...
Innula Zenovka Posted April 4, 2011 Share Posted April 4, 2011 You don't need -- assuming you're scripting the whole thing -- to use a separate script just to reset all the other scripts in the linkset. Just have, in your menu options, something like else if ("Reset Scripts"==msg){ llMessageLinked(LINK_SET,"",msg,""); llResetScript(); } and in all the other scripts, link_message(integer sender, integer num, string str, key id){ if("Reset Scripts"==str){ llResetScript(); }} Link to comment Share on other sites More sharing options...
conrad Evanier Posted April 5, 2011 Author Share Posted April 5, 2011 Hi innula yeh i had the same idea and works well, i just added 2 new optins to my main menu to reset the 2 scripts i need to reset at different times, like you say no need for extra script and its perfect. Just what i was after. its a very useful option to have in my menu thanks for all the advice on this. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now