• 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.

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:
Level 24
Joined
Aug 1, 2013
Messages
4,658
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.
Top