• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to 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