CPL.Chesh 0 Posted May 31, 2002 ok im making a mission and i need help this is the bit im stuck at ive got a shilka and im wanting it to shoot at my chinook but i want it destroyed is there a script to do this cause i dont trust AI to destroy it for me Ta Fi Cpl.Chesh Share this post Link to post Share on other sites
shadow 6 Posted May 31, 2002 An easy way of making it look like a Shilka downs a Chinook is this: condition: getdammage chinookname >=0.1 0=healthy - 1=dead onactivation: chinookname setdammage 1 0=healthy - 1=dead This trigger detects if the health of the unit called chinookname is equal to or below 90%. Then it sets the health of the unit called chinookname to 0% (dead) Share this post Link to post Share on other sites
CPL.Chesh 0 Posted May 31, 2002 will it eject me and my copilot or will we be destroyed as well ?? Share this post Link to post Share on other sites
SCLZ 0 Posted June 1, 2002 Hmm...I think the following will work. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _helo = _this select 0 #Start _i = 0 _peopleList = crew _helo #Loop ; Jump! ? NOT(alive(_peopleList select _i)) : Goto "Count" (_peopleList select _i) action ["EJECT", _helo] unassignvehicle (_peopleList select _i) #Count _i = _i + 1 ; Everyone out? ? (_i > count _peopleList) : Goto "Exit" ~0.25 Goto "Loop" #Exit _helo setdammage 0.999 exit <span id='postcolor'> Should make everyone in the chopper jump out and then sets the chopper damage to almost dead so it's certain to explode on impact. Is this what your after? Share this post Link to post Share on other sites