• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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