Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitSelectionColor

Last wiki revision 2022-08-03

Returns the color of the outline and circle underneath the unit. red, green ,blue, alpha = UnitSelectionColor(UnitId[, useExtendedColors])

  • UnitId: - The unit whose selection colour should be returned.
  • useExtendedColors: - 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).
  • red: - A number between 0 and 1.
  • green: - A number between 0 and 1.
  • blue: - A number between 0 and 1.
  • alpha: - A number between 0 and 1.

0, 0, 0.99999779462814, 0.99999779462814 = UnitSelectionColor("player") 0, 0.99999779462814, 0, 0.99999779462814 = UnitSelectionColor("target") -- a friendly npc in target

  • API UnitSelectionType

Source

https://warcraft.wiki.gg/wiki/API_UnitSelectionColor · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.