Instructions/Check Health: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational)
 
Line 3: Line 3:
==== Description ====
==== Description ====


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


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


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


==== Similar Instructions ====
==== Similar Instructions ====


 
[[Instructions/Get Health|Get Health]]
{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 06:01, 17 September 2023


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