v0.13.8

UnitHealthPercent

functionimplementedavailable in: camelot

Returns percent of health remaining - can be scaled via a curve for display purposes

signaturewowlua
function UnitHealthPercent(    unit: string,    usePredicted: boolean,    curve: LuaCurveObjectBase?): LuaCurveEvaluatedResult

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.
curveLuaCurveObjectBase?

Returns

result · LuaCurveEvaluatedResult · If no curve is specified, a floating point percentage value. Else, the result of evaluating the curve with the percentage as the input.

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 ↗.