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

Ability Just Dissapears

Status
Not open for further replies.
Level 5
Joined
Dec 1, 2007
Messages
121
I made an ability (Based of Lightning Orb ability) as a hero ability.

The problem is, it just dispersal when I cast metamorphosis.

I tried bringing it back via triggers (Enable/Disable, Add ability back) but nothing.

Any ideas? Any fixes? Any suggestions?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Use this Custom script to make the ability permanent on the hero (even metamorph, etc)

  • Custom script: call UnitMakeAbilityPermanent(udg_Caster, true, 'A000')
Where,

udg_Caster = Your global variable, named 'Caster'
true = It's a boolean setting, to set whether you want to make that ability permanent (in this case, yes, we want to make it permanent, yes = true)
'A000' = Your Ability Raw ID Code (you can check it by press CTRL + D on the Object Editor, Abilities Tab)
 
Last edited:
Status
Not open for further replies.
Top