• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Attack Priority

Status
Not open for further replies.
Towers try to be "smart" and therefore messing with you, I'd guess.
attack priority seems to contain reasonable information.

Basically, units with high "priority" is used for AI default attack priority.
To force the tower to target something in a specific situation, you will need to trigger it.

I would've used Damage Engine 5.7.0.3 to detect when damage is dealt from a hero to another hero, and search for (alive, enemy) towers within the attack-range for towers, and order it to attack the hero dealing the damage.
There might be a better solution, but at least this is a solution ;)
 
Level 24
Joined
Jun 26, 2020
Messages
1,938
Towers try to be "smart" and therefore messing with you, I'd guess.
attack priority seems to contain reasonable information.

Basically, units with high "priority" is used for AI default attack priority.
To force the tower to target something in a specific situation, you will need to trigger it.

I would've used Damage Engine 5.7.0.3 to detect when damage is dealt from a hero to another hero, and search for (alive, enemy) towers within the attack-range for towers, and order it to attack the hero dealing the damage.
There might be a better solution, but at least this is a solution ;)
Thanks for the help.
 
Ohh, and if you want an easier route than Damage Engine (that would check for damage dealt) it is possible to use the "Unit - Generic Event" and check for "A unit is attacked".
It is way worse (it triggers before the projectiles are fired for ranged units, and would not trigger on abilities dealing damage to heroes), but it is easier to use.
 
Status
Not open for further replies.
Top