Instructions/Get Health

From Desynced Wiki


Get Health
     
     Gets a unit's health as a percentage, current remaining and max amount
Lua ID get_health
Category Math
Icon H Value.png
Argument One: Type Input
Argument One: Name Unit
Argument One: Description Unit to check
Argument One: Data Type entity
Argument Two: Type Output
Argument Two: Name Percent
Argument Two: Description Percentage of health remaining
Argument Three: Type Output
Argument Three: Name Current
Argument Three: Description Value of health remaining
Argument Four: Type Output
Argument Four: Name Max
Argument Four: Description Value of maximum health



Description[edit | edit source]

Gets the health of a target entity.

Uses[edit | edit source]

Typical usage may involve checking if the entity is "too damaged" and should return to base for repairs.

May also be used to focus targets for repair or extermination.

Similar Instructions[edit | edit source]

Check Health