mrcash2009 0 Posted March 1, 2008 Hi, I have a mission where im using Kronskyz UPS (Urban Patrol Script). I have 5 markers in different areas all tied to a random amount of cloned Enemy groups created to patrol each area. So I never really know in total how many are patrolling at one time on execution of the mission (the good reason for the script). So, in this case how can I setup a mission completion trigger to happen when all enemy are dead? OR I should ask, what do I set to count all the enemy on the map (once they are all generated) to be able to do this? Im pretty new to scripting, im no dumbass, but still finding my feet in certain areas, once I get the seed planted im away Share this post Link to post Share on other sites
mr.g-c 6 Posted March 1, 2008 make the trigger big enough and set to "opfor" "not existing" and "once" Then to "end1" or so... im sorry i only know it in german... Share this post Link to post Share on other sites
CarlGustaffa 4 Posted March 4, 2008 But be careful using "all dead" trigger for endgame event. Sometimes, and especially during randomly placed units, they can be very hard if not impossible to find, ending in a non-endeable mission. Or maybe their just fleeing. Instead I'd suggest use a count<8 enemy units with a timer. Or maybe a seizedby trigger instead of a unitcount trigger. Share this post Link to post Share on other sites
kronzky 5 Posted March 5, 2008 Both suggestions are very true (using a large, overlapping trigger, and having a light "margin of error" for that end condition). Since you say you're new to scripting, it might not be that obvious though, how to determine how many units are left. So here's a screenshot of how you should probably set up that end-condition trigger: Share this post Link to post Share on other sites
mrcash2009 0 Posted March 6, 2008 Ah thank you thats very handy, and from the script making himself .. very nice script mate. Reminds me of ghost recon quick missions using your script. Share this post Link to post Share on other sites