UnitHealth
functionimplementedavailable in: camelot
Returns the current health of the unit.
function UnitHealth( unit: string, usePredicted: boolean): numberParameters
| name | type | description |
|---|---|---|
unit | string | |
usePredicted | boolean | Predicts the values that would be returned from the server by using combat log information, so the health values will be more up-to-date. There are generally only advantages for using this. Default: true. |
Returns
result · number
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.