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

UnitAddAbility

Status
Not open for further replies.
Level 4
Joined
Jan 27, 2010
Messages
133
You're almost doing it right. Ability codes in JASS use only the first four characters. Thus:

JASS:
 // Only 'A003', instead of 'A003:Auhf'

call UnitAddAbility(GetLastCreatedUnit(), 'A003')
 
Status
Not open for further replies.
Top