Home   Help Search Login Register  

Author Topic: More silly questions - Checking for all a group being dead  (Read 876 times)

0 Members and 1 Guest are viewing this topic.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
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.

klavan

  • Guest
Re: More silly questions - Checking for all a group being dead
« Reply #1 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

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: More silly questions - Checking for all a group being dead
« Reply #2 on: 01 Jun 2006, 00:11:12 »
Thanks dude. Will test it now.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: More silly questions - Checking for all a group being dead
« Reply #3 on: 01 Jun 2006, 00:29:45 »
Thats a big fat solve. Thanks very much indeed.