v0.13.8

UnitHealth

functionimplementedavailable in: camelot

Returns the current health of the unit.

signaturewowlua
function UnitHealth(    unit: string,    usePredicted: boolean): number

Parameters

nametypedescription
unitstring
usePredictedbooleanPredicts 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 ↗.