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

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
941
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