Instructions/Check Health

From Desynced Wiki
Revision as of 06:01, 17 September 2023 by Johan (talk | contribs) (informational)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

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

Uses

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

Get Health