v0.13.8

UnitSelectionColor

functionimplementedavailable in: camelot

Returns the color of the outline and circle underneath the unit.

signaturewowlua
function UnitSelectionColor(    unit: string,    useExtendedColors: boolean): (number, number, number, number)

Parameters

nametypedescription
unitstringThe unit whose selection colour should be returned.
useExtendedColorsbooleanIf true, a more appropriate colour of the unit's selection will be returned. For instance, if used on a dead hostile target, the default return will red (hostile), but the extended return will be grey (dead). Default: false.

Returns

#nametype
1resultRnumber
2resultGnumber
3resultBnumber
4resultAnumber

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