Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitSelectionType

Last wiki revision 2022-08-01

Returns the selection type of the outline and circle underneath the unit. type = UnitSelectionType(UnitId[, useExtendedColors])

  • UnitId: - The unit whose selection type should be returned.
  • useExtendedColors: - If true, a more appropriate type of the unit's selection will be returned. For instance, if used on a dead hostile target, the default return will be 0 (hostile), but the extended return will be 9 (dead).
  • type: - The unit's selection type:
  • 0 - Hostile.
  • 1 - Unfriendly.
  • 2 - Neutral.
  • 3 - Friendly.
  • 4 - Player.
  • 5 - Player, if using extended colours.
  • 6 - Party.
  • 7 - Party (War Mode On).
  • 8 - Friend, a player from your friend list.
  • 9 - Dead.
  • 10 - Commentator Team 1, only available to commentators.
  • 11 - Commentator Team 2, only available to commentators.
  • 12 - Self, your character if highlighting of your character is enabled.
  • 13 - Friendly (Battleground), party members and friendly units in battlegrounds.
  • If the unit doesn't exist, this function will return 4 or 5, if using extended colours.
  • API UnitSelectionColor

Source

https://warcraft.wiki.gg/wiki/API_UnitSelectionType · 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.