• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Remove all abilities from a unit?

Status
Not open for further replies.
Level 6
Joined
Mar 17, 2012
Messages
105
Looking for a way to remove every ability from a unit. There is Unit > Remove Ability, but my game has a multitude of abilities and I'm hoping that there is a custom script or something out there to remove every ability from a unit. The abilities are Unit abilities, not Hero abilities.
 
If your abilities are not permanent(if you didn't set them manually via triggers), you can transform a unit to another unit, then transform unit back.
 
This is rather good workaround. You can set abilities in a variable YourUnitName_Abilities[] -> array ranging from 1 to how many abilities your unit has.
On desired event add the abilities to a unit, and then when you want to remove the abilities from a unit, transform it into a unit, and transform it back.
 
Status
Not open for further replies.
Back
Top