Jump to content
Sign in to follow this  
mrcash2009

Urban Patrol Script - Random Enemy Units

Recommended Posts

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 smile_o.gif

Share this post


Link to post
Share on other sites

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

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

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:

leftover.gif

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×