• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Unit grouping

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
Unit grouping FINISHED

Yo wasap its me again ok here we go :
I got 10 frog's i want to put them in som group(variable if possible)
so i can check when the counter = 0
so i can spawn other units and so on:ogre_icwydt:

Edit:
i need the trigger ... i get the poent what i have to do.
but im making the whole map and of this poent i got 2 days
to finish it ... im going on (vacation?) i go rest a bit
EDIT2:
I DONE IT >>> please closed
 
Last edited:
You sound confused...

You can group units together in a group (a container for units).

If you want the frogs to die (and when they get to 0 do something) you need an integer array to keep track of numbers. When one dies, you decriment (remove 1 from) the counter and check if it is 0 (do actions if it is).

In any case, you need to remove units from a group on death otherwise they will leak into the group (unless you do an expensive rebuild from time to time).
 
Status
Not open for further replies.
Back
Top