• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
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.
Top