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

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