How do I use 'percentage of max health?'

HalosNTariff

New Member
Reaction score
13
Hi, I'm making a map and in order for a hero to use their ultimate ability they have to fulfill a variety of criteria. One of these is that the hero must be on 30% of health or lower.

How would I go about doing this? My trigger so far runs when the unit is attacked, checks whether the unit is of the right type and then adds the ability. I need a condition which checks that the unit is on 30%, or lower, hp. Does anybody know how I would do this?

Thanks in advance.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
real comparison - (current life of [unit]) / (max life of [unit]) less than or equal to 0.30
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top