Instructions/Check Health

From Desynced Wiki


Check Health
     
     Check a unit's health
Lua ID check_health
Category Unit
Icon H Value.png
Argument One: Type Exec
Argument One: Name Full
Argument One: Description Where to continue if at full health
Argument Two: Type Input
Argument Two: Name Unit
Argument Two: Description The unit to check for (if not self)
Argument Two: Data Type entity



Description[edit | edit source]

A yes or no evaluation on the target unit being at maximum health.

Uses[edit | edit source]

Used as an evaluation if the target is at maximum health.

Often used before invoking Get Health due to evaluating that into a boolean operation being a longer process or to avoid unnecessary instruction processing.

Similar Instructions[edit | edit source]

Get Health