• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Disabling/enabling attacks from an unit

Status
Not open for further replies.
Level 1
Joined
Jul 5, 2011
Messages
2
Hello,

How can I disable one attack and enable another attack for a unit temporarily? Or alternatively force it to use the second attack over the first attack for a limited duration.

Thanks in advance.
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
I'm not sure it's posible since attacks refer to target types.
And in fact you can change the classification for targets in given situation but I doubt you look for this kind of solution since it's complicated.

Attacks can also be manipulated via upgrades (like tanks in war3 ladder gains additional one after reseaching volley).

However, upgrades can not be removed after they are finished and thus the change is permanent.
 
Level 5
Joined
Nov 7, 2007
Messages
134
Silence can be used if one attack is ranged and the other is melee, possibly you could also set Attack Type of one of the attacks to "Spells" and block it with Silence in that way, though that might affect the use of the attack in other ways too.
 
Status
Not open for further replies.
Top