Hello. Im fairly new in working with triggers, and i am trying to count the amount of zerglings in a certain area, so i can limit the amount of zerglings that spawn, although i cannot find a condition that makes this work. If anyone could help it would be greatly appreciated.
The condition you want is "Number of unit in unit group".
For "Unit Group" choose "units in region matching condition".
For "Any" click on the "value" tab and choose zergling.
The default region is "entire map", but you can change that to any region you like.
You can also choose what player owns the zerglings, and it will only count those zerglings owned by that player. Any player, means the ownership doesn't matter.
Leave "Any Amount" as is. This is basically a maximum value it will count, which is not something you want for this.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello. Im fairly new in working with triggers, and i am trying to count the amount of zerglings in a certain area, so i can limit the amount of zerglings that spawn, although i cannot find a condition that makes this work. If anyone could help it would be greatly appreciated.
The condition you want is "Number of unit in unit group".
For "Unit Group" choose "units in region matching condition".
For "Any" click on the "value" tab and choose zergling.
The default region is "entire map", but you can change that to any region you like.
You can also choose what player owns the zerglings, and it will only count those zerglings owned by that player. Any player, means the ownership doesn't matter.
Leave "Any Amount" as is. This is basically a maximum value it will count, which is not something you want for this.