Hovis 0 Posted March 10, 2007 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. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted March 10, 2007 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
Hovis 0 Posted March 10, 2007 Thanks it works like a charm Share this post Link to post Share on other sites