Jump to content
Sign in to follow this  
Sharia

Any east that dies in trigger radius

Recommended Posts

Okay, hi.

Right, In a mission I am making, I want to have a trigger make certain units go into combat mode (and tank crews jump into their tanks) Now, I've already done that stuff, but I'm just stuck on how to make them carry out the actions when anyone (or thing) is dead/destroyed/disabled. Here's how I have the condition right now, but I think it's clogging up the mission some. (I'm getting poor frame rates.)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NOT (alive soldier1) OR NOT (alive soldier2) OR NOT (alive soldier3) OR NOT (alive soldier4) OR NOT (alive soldier5) OR NOT (alive soldier6) OR NOT (alive soldier7) OR NOT (alive soldier8) OR NOT (alive soldier9) OR (not canmove shilka1 or not canfire shilka1) OR (not canmove T801 or not canfire T801)

Share this post


Link to post
Share on other sites

If you really want to save framerates:

add "killed" event handlers on all your east dudes in the area.

Leave the trigger as east present, no special condition and no action, name it 'inarea'

then in your killed EH function for the soldiers you can do:

?(_this select 0)in(list inarea):<combat orders>

if you don't know about event handlers get the command reference from BIS website, and look for small examples here.

EDIT: where it says <combat orders> you should also go through all east units in "list inarea" and remove the killed EH since you don't need it anymore

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  

×