[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.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
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.
 
Level 18
Joined
May 11, 2012
Messages
2,108
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.
Top