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')
 
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.
 
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.
Back
Top