Jump to content
Sign in to follow this  
Hovis

Suggestions for Defence mission end triggers

Recommended Posts

So I'm doing a mission where a squad plus AI troops holds a base under heavy attack, but I'm not sure how to have the mission end. I don't want it to be a kill all enemy mission, because I don't want the player forces to have to advance out of their defensive positions. I was thinking of trying the mission to the arrival of reinforcements, but not sure how that would work. The easiest answer would seem to be a time limit, but it might seem odd to end the mission arbitrarily at a time when the players could be on the verge of defeat.

Help appreciated. biggrin_o.gif

Share this post


Link to post
Share on other sites

Create a large trigger that covers the entire area where the enemy (attacking side) is and detects if that side is present and put this in the condition field:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{alive _X && !(fleeing _X)} count thislist <= 0

That will end your mission when all surviving enemies are retreating, which they will automatically do as long as you don't set allowfleeing to zero for them.

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  

×