Jump to content
Sign in to follow this  
CPL.Chesh

Shilka

Recommended Posts

ok im making a mission and i need help confused.gif 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

biggrin.gif Ta Fi Cpl.Chesh

Share this post


Link to post
Share on other sites

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

will it eject me and my copilot or will we be destroyed as well ?? wink.gif

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×