Home   Help Search Login Register  

Author Topic: Multiple unit detection  (Read 707 times)

0 Members and 1 Guest are viewing this topic.

j-man

  • Guest
Multiple unit detection
« on: 26 Nov 2003, 06:17:41 »
i'm new and i was wondering ??? how to get a trigger to chek if multiple unit are dead?

Can any1 help?

mr.sert

  • Guest
Re:Multiple unit detection
« Reply #1 on: 26 Nov 2003, 09:17:32 »
This advice was given to me. Not sure if this is exactly what you mean, but hope this works for you. This is using civilians as your "units". You could obviously substitute your units, ie: west/east for "civilian". Good luck

Try this:

Place a large trigger over the map, type "civilian present", non-repeating, on activation: civies=+thislist

Now, place an "end" trigger, condition: "alive _x" count civies <=2

I used four civilians.  When there were two (or less) left, the mission ends.  You can change the number to your liking.

Or you can do this:  make the large trigger activation line : civies=+thislist;civy_count=count civies

and the condition line of the end trigger:
"alive _x" count civies <= civy_count/2

This will end the mission if half of the civilians get killed.  This way you can place as many civilians as you want and not have to worry about changing your trigger.


- Mr. Sert

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Multiple unit detection
« Reply #2 on: 26 Nov 2003, 13:11:30 »
mr.sert's suggestion is excellent.    An alternative is to create a trigger like this:-

Condition:   (not alive loon1) and (not alive loon2)
On activation:   whatever you like

Which method is better depends on circumstances and personal choice.

Oh, and

Welcome to the forum!
« Last Edit: 26 Nov 2003, 13:12:36 by macguba »
Plenty of reviewed ArmA missions for you to play

j-man

  • Guest
Re:Multiple unit detection
« Reply #3 on: 26 Nov 2003, 17:05:44 »
Hey thank so much! Works great :D