• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

MultiAtack

Status
Not open for further replies.
Level 4
Joined
Jan 19, 2015
Messages
61
I want to know if theres a way to do a unit atack multiple enemies and atack while moving, i want to do a tower that shot cannonballs and arrows and a kodo beast that shot 2 arrows while moving.
 
You need to use 2 units.

The first unit has no attack.
The second unit has an attack, barrage (to give multishot), Locust (to make it unclickable), Invulnerable, and no model.

You'll need a few triggers to handle this:

1. When the kodo is trained, you create the attacker unit and link them together using either a unit indexer or a hashtable.

2. Make a looping trigger that moves the attacker unit to the position of the kodo using the custom script SetUnitX/SetUnitY.

3. When the kodo dies, kill its associated attacker unit.
 
Status
Not open for further replies.
Top