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

How to stun or slow many units

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
I have this one hero that spawns uncontrollable units and the hero has abilities to move those units around. One of its abilities causes all of the uncontrollable units to thunderclap. The problem is that there is a ton of lag when 15-ish units all thunderclap at the same time.

I had the same problem with an ability where dummy units cast shockwave in 8 different directions from the caster. I fixed that one by switching the ability to breath of frost.

I can create the animation and deal the damage with triggers, however, now my problem is that I still need this thunderclap to apply the slow. My plan is to use the slow spell and cast it on each unit that got hit by a thunderclap. Should I spawn a unit for each target and then have them cast the slow spell on each one? I feel like spawning one and giving it the order for each target will only get the last target.

Is there a more general / better way to do this?

I'll also probably end up wanting the exact same thing with a stun effect instead.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Cool. I guess it does work with just one unit being ordered a bunch of times. I'll test it out when I get the chance. Thanks!
 
Status
Not open for further replies.
Top