Home   Help Search Login Register  

Author Topic: Enemy group kill control  (Read 691 times)

0 Members and 1 Guest are viewing this topic.

Kaiser_5SM

  • Guest
Enemy group kill control
« on: 24 Apr 2003, 15:15:13 »
Hi,

   There are any method to know if an entire enemy group has been killed? I know how to know if a soldier is alive or not, but there are anything to a enemy group?

Thanks.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Enemy group kill control
« Reply #1 on: 24 Apr 2003, 15:21:40 »
Name the group by putting in the leaders init field   grp1=group this
if you haven't already named it.
Then use this line in your trigger or script of whatever your using to detect if all of them are killed.

"alive _x" count (units grp1) == 0
Not all is lost.

Kaiser_5SM

  • Guest
Re:Enemy group kill control
« Reply #2 on: 24 Apr 2003, 15:39:10 »
Thanks. :)