UnitSelectionColor
functionimplementedavailable in: camelot
Returns the color of the outline and circle underneath the unit.
function UnitSelectionColor( unit: string, useExtendedColors: boolean): (number, number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | The unit whose selection colour should be returned. |
useExtendedColors | boolean | If 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
| # | name | type |
|---|---|---|
| 1 | resultR | number |
| 2 | resultG | number |
| 3 | resultB | number |
| 4 | resultA | 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 ↗.