• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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