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

How to disable ability?

Status
Not open for further replies.
Level 3
Joined
Jan 2, 2010
Messages
34
Hello, I'm creating ability which transfer HP from caster to target and from target to caster but I have a problem,
I want to somehow disable ability (make it something like passive (unclickable)) if caster have less than 15% HP.
How can I do that? Is there any option in trigger to "disable/able" ability?
 
Level 15
Joined
Oct 16, 2010
Messages
942
Well there is an enable/disable ability action under 'player' in the action menu. But I think what you want to do is remove the ability (under unit actions) and then replace it with a passive dummy ability that doesn't do anything and has the same icon.

Either way you'd have to run periodic checks on the units hp to know when it's below 15%.
 
Status
Not open for further replies.
Top