• 🏆 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!

BlzSetAbility not working?

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,597
Hi guys,

i just wondered if those function work in the current version
JASS:
        call BlzSetAbilityStringField(BlzGetUnitAbility(u.object, 'ABL1'), ABILITY_SF_NAME, abil.name)
        call BlzSetAbilityStringLevelField(BlzGetUnitAbility(u.object, 'ABL1'), ABILITY_SLF_ICON_NORMAL, 0, abil.icon)
        call BlzSetAbilityRealLevelField(BlzGetUnitAbility(u.object, 'ABL1'), ABILITY_RLF_FOLLOW_THROUGH_TIME, 0, abil.channelTime)
        call BlzSetAbilityRealLevelField(BlzGetUnitAbility(u.object, 'ABL1'), ABILITY_RLF_COOLDOWN, 0, abil.cooldown)
it doesnt work for me, maybe i did something wrong.

EDIT: It seems like some of them are working. I only got issues with icon and tooltips/name
 
Last edited:
Status
Not open for further replies.
Top