Jump to content
Sign in to follow this  
hotshotmike1001

MV-22 Osprey Scripting

Recommended Posts

how can i make the engines not Turn on when they fold up for storage? to keep players from starting if the engines are packed

here is the script

What do i need to add so when it Packs engines wont start? and then when it unpacks it will start

_mv22 =_this select 0;

_phase=_this select 1;

_mv22 animate["engine_prop_1_1_turn",_phase];

_mv22 animate["engine_prop_1_2_turn",_phase];

_mv22 animate["engine_prop_1_3_turn",_phase];

_mv22 animate["engine_prop_2_1_turn",_phase];

_mv22 animate["engine_prop_2_2_turn",_phase];

_mv22 animate["engine_prop_2_3_turn",_phase];

_mv22 animate["engine_prop_1_1_close",_phase];

_mv22 animate["engine_prop_1_3_close",_phase];

_mv22 animate["engine_prop_2_1_close",_phase];

_mv22 animate["engine_prop_2_2_close",_phase];

_mv22 animate["pack_engine_1",_phase];

_mv22 animate["pack_engine_2",_phase];

_mv22 animate["turn_wing",_phase];

Share this post


Link to post
Share on other sites

Best way would be to record the fuel amount, then setfuel to 0 when folded, then set back to the right amount when unfolded.

_mv22 = _this;

_fuelqty = fuel _mv22;
_mv22 setfuel 0;
waituntil{_mv22 animationphase "pack_engine_1" == 0};
_mv22 setfuel _fuelqty;

Share this post


Link to post
Share on other sites

Try the EngineOn eventhandler in the cpp , if it works link an animationphase of the fold and switch the engine off.

Share this post


Link to post
Share on other sites
Best way would be to record the fuel amount, then setfuel to 0 when folded, then set back to the right amount when unfolded.

But what happens if it's next to a refuell building/unit?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×