How to check percentage of unit

LoveRPG

Member
Reaction score
6
I have been making a bit of AI lately, but I have run into a problem. I want to check the percentage life of the AI hero. But I do not know how to or even if it is possble. So if it is, can someone please tell me how? Thanks for your time^^
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
integer comparison
Unit current life equal to or less than x%
Its something along the lines of that.
 

BlueMirage

Trust, but doubt.
Reaction score
39
Current Life divided by Max life and you'll get the percentage HP that the hero has left. If you want the percentage hp missing, do 1 - (Current Life / Max Life).
 

tooltiperror

Super Moderator
Reaction score
231
I have been making a bit of AI lately, but I have run into a problem. I want to check the percentage life of the AI hero. But I do not know how to or even if it is possble. So if it is, can someone please tell me how? Thanks for your time^^

AI editor or GUI?


If this is in GUI, use this.

> (Integer((Life of (Triggering unit))))

For AI Editor, I'm not sure.
 
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