Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetRaidTargetIndex

Last wiki revision 2022-09-09

Returns the raid target of a unit. index = GetRaidTargetIndex(unit)

  • unit: : UnitId
  • index:
  • Raid target icons are typically displayed by unit frames, as well as above the marked entities in the 3D world. The targets can be assigned by raid leaders and assistants, party members, and the player while soloing, and are only visible to other players within the same group.
  • This function can return arbitrary values if the queried unit does not exist. Use to check whether a unit is valid.
  • For example: "raid2target" when "raid2" is offline and not targetting anything at all misbehaves.

Prints the raid target index for your target. /dump GetRaidTargetIndex("target")

  • RaidFlag

Source

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