• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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