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

Attack enabled

Status
Not open for further replies.
Level 2
Joined
Jan 26, 2020
Messages
9
Hello,
I disabled attack from one of my unit via this trigger :

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Unit - Set Unit: (Triggering unit)'s Weapon Boolean Field: Attacks Enabled ('uaen')at Index:0 to Value: Faux
      • Unit - Set Unit: (Triggering unit)'s Weapon Boolean Field: Attacks Enabled ('uaen')at Index:1 to Value: Vrai
Then when i reactivate it, i do have the attack icon, but no damage. And the unit can only attack ground.
How can i reactivate everything properly?
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
As a workaround, I think you can add the Cargo hold ability to an unit in order to prevent it from attacking, then remove the ability to restore its attack. It might be easier than tinkering with these actions, because I think they are a bit buggy
 
Level 2
Joined
Jan 26, 2020
Messages
9
mmh thats ingenious but the hold ability dont seem to desactivate the attack ability. A unit can have both. Exemple : meat wagon.
Ideally, i would like to be able to remove all the UI and replace them by ability's. It doesnt seem to be possible so i just replaced the attack one by a spellbook
 
Last edited:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I believe it needs to be Cargo Hold (Orc Burrow) for it to work properly.

You can hide the Attack button by importing a custom CommandFunc file, but this will hide it for all units.
 
Status
Not open for further replies.
Top