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

[Solved] Unit groups.

Status
Not open for further replies.
Level 4
Joined
Nov 24, 2010
Messages
70
Hi, i made a spell that when a unit casts that spell, a variable group will be set that records all units within 300 range of casting unit. Then the number of units in the group as an integer variable. Then the trigger will create (Number of units in unit group) for casting unit. The problem is, how can we order every unit of a group to cast a dummy spell on every unit. for exmp, every unit in CasterGroup to cast spell on every unit in TargetGroup? Also, its 1 unit cast to 1 unit. A target will not be casted on by the ability twice
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Hi, i made a spell that when a unit casts that spell, a variable group will be set that records all units within 300 range of casting unit. Then the number of units in the group as an integer variable. Then the trigger will create (Number of units in unit group) for casting unit. The problem is, how can we order every unit of a group to cast a dummy spell on every unit. for exmp, every unit in CasterGroup to cast spell on every unit in TargetGroup? Also, its 1 unit cast to 1 unit. A target will not be casted on by the ability twice

If I get what you mean correctly, then you won't need 2 groups.
Just use "Pick every unit in group and do multiple actions" for the target group and then create a dummy for every unit separately.
You could also recycle dummies, but I guess that is not needed at this point.
 
Status
Not open for further replies.
Top