OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kaiser_5SM on 24 Apr 2003, 15:15:13

Title: Enemy group kill control
Post by: Kaiser_5SM 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.
Title: Re:Enemy group kill control
Post by: Artak 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
Title: Re:Enemy group kill control
Post by: Kaiser_5SM on 24 Apr 2003, 15:39:10
Thanks. :)