Returns the index of the raid target marker on a unit


See also Raid functions.

Signature:

index = GetRaidTargetIndex("unit") or GetRaidTargetIndex("name")

Arguments:

  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)

Returns:

  • index - Index of a target marker (number)
    • 1 - Star
    • 2 - Circle
    • 3 - Diamond
    • 4 - Triangle
    • 5 - Moon
    • 6 - Square
    • 7 - Cross
    • 8 - Skull
    • nil - No marker