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

Correct codes for these please?

Status
Not open for further replies.
Level 9
Joined
Feb 16, 2011
Messages
595
I'm trying to use these codes to remove the attack ability Then Give it back later for the picked unit of Pick units in group trigger

call UnitRemoveAbility(PickedUnit, 'Aatk')

call UnitMakeAbilityPermanent(PickedUnit, 'Aatk')
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
If you remove attack ability with this way, you can't give it back.

You should do something like this.

Adding this ability removes attack ability of unit.
Unit - Add Cargo Hold (Orc burrow) to (Picked unit)

If you want to make unit be able to attack again remove ability.
 
Level 9
Joined
Feb 16, 2011
Messages
595
Lol I'm dumb I knew that alternative existed But I didn't want to risk it with the cargo hold stuff as i'm affecting it world wide And I had no idea that removing the attack function like that would make it unable to attack again thanks for that info Rep on the info.
 
Status
Not open for further replies.
Top