OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gogs on 31 May 2006, 23:50:37

Title: More silly questions - Checking for all a group being dead
Post by: Gogs on 31 May 2006, 23:50:37
Alright guys, second silly question of the day.

I've got a group, and I want to set off a trigger when they are all dead. I tried

(count units groupname)==0 or (count units groupname)<1

But this doesn't seem to work because the group name seems to become null as soon as soon as they are all dead.


Does anyone have any suggestions which to involve naming the group individually? Thanks boys.
Title: Re: More silly questions - Checking for all a group being dead
Post by: klavan on 01 Jun 2006, 00:08:33
Try this:
Code: [Select]
{alive _x} count units groupname == 0Tested few moments ago and it works fine
Klavan
Title: Re: More silly questions - Checking for all a group being dead
Post by: Gogs on 01 Jun 2006, 00:11:12
Thanks dude. Will test it now.
Title: Re: More silly questions - Checking for all a group being dead
Post by: Gogs on 01 Jun 2006, 00:29:45
Thats a big fat solve. Thanks very much indeed.