vitamin 18 Posted October 17, 2013 I have a problem with disabling animations used in car (ICP_moskvich.pbo). Here's a config from this addon: class Animations { class FuelT { type="rotation"; animPeriod=1; selection="FuelT"; axis="osa_FuelT"; angle0=0; angle1=0.6; }; class gabarit { type="rotation"; animPeriod=0.01; selection="gabarit"; axis="osa_gabarit"; angle0=0; angle1=3.0; }; class svt { type="rotation"; animPeriod=0.01; selection="svt"; axis="osa_svt"; angle0=0; angle1=3.0; }; }; class EventHandlers { init="[_this select 0] exec ""\icp_moskvich\Fuel.sqs""; [_this select 0] exec ""\icp_moskvich\gabarit.sqs"""; }; And here's 'gabarit.sqs': _car = _this select 0 _delay = 0.00001 #gab ?(speed _car > -1):_car animate ["gabarit",1] ?(speed _car < -1):_car animate ["gabarit",0] ?(speed _car > -1):_car animate ["svt",1] ?(speed _car < -1):_car animate ["svt",0] goto "gab" I'm not sure but it seems to me that this 'gabarit.sqs' is responsible for turning on and off a back light on this car. If I don't use this script in my main config file, than the back light is always on. Now my question would be - is it possible not to use this script (delete the whole eventHandlers class) and have the animations turned off so the back light was not lit all the time? Share this post Link to post Share on other sites
Lenyoga 326 Posted October 17, 2013 Removing the script from the eventhandler section would do the job - but as you said the lights are always on, so that seems to be the default state, so doing the animation for whatever part is the light once should get rid of the problem. Try disabling the script and running "_car animate ["svt",1]" or "_car animate ["gabarit",1]" (whichever is the light) once instead, that should do the trick. Share this post Link to post Share on other sites
vitamin 18 Posted October 17, 2013 "_car animate ["svt",1]" ^ this probably would do the trick but the problem is I cannot write this command in the main config.cpp file. So I'm looking for some way to alter the state of these animations but without running external scripts (to avoid eventHandlers classes in the main config.cpp file). Share this post Link to post Share on other sites
ProfTournesol 956 Posted October 17, 2013 Well, you may want to try the following : replace for the last two animations (dunno which one is the light) config : angle0=0 by angle0=3.0 Share this post Link to post Share on other sites
vitamin 18 Posted October 17, 2013 Bingo! Back light is off now Thank you very much ProfTournesol for your help. Share this post Link to post Share on other sites