Linked units in group

Status
Not open for further replies.
Level 13
Joined
Mar 29, 2012
Messages
542
What I knew about the best of enumerating a unit group with JASS is by using the FirstOfGroup function. But it also remove all units from the group (temporary group).

I just created an empty unit group and each time a unit cast a spell, it gets in the group. All units are armed with index (Bribe's Unit indexer).
How do I enumerate these units using their indexes? Or any other?
 
Last edited:
ForForce? Dunno what you are trying to say but that has nothing to do with it.
ForGroup on the other hand is actually useful... kinda.

FirstOfGroup with a swap group is still faster and more readable and easier to code than ForGroup so you still might want to consider that.

If not, you can just make an array of units and add the casters to that array.
It can come in handy.
 
Status
Not open for further replies.
Back
Top