Wowpedia
Advertisement
Game Flavors
Links
Info
Added in 1.11.0 / 1.13.2
Popularity #208 (191)

Assigns a raid target icon to a unit.

SetRaidTarget(unit, index)

Arguments

unit
string : UnitId
index
number - Raid target index to assign to the specified unit:
Value Icon
1 IconSmall RaidStar.png Yellow 4-point Star
2 IconSmall RaidCircle.png Orange Circle
3 IconSmall RaidDiamond.png Purple Diamond
4 IconSmall RaidTriangle.png Green Triangle
5 IconSmall RaidMoon.png White Crescent Moon
6 IconSmall RaidSquare.png Blue Square
7 IconSmall RaidCross.png Red "X" Cross
8 IconSmall RaidSkull.png White Skull

Details

  • The icons are only visible to your group. In a 5-man party, all party members may assign raid icons. In a raid, only the raid leader and the assistants may do so.
  • This function toggles the icon if it's already assigned to the unit.
  • Units can only be assigned one icon at a time; and each icon can only be assigned to one unit at a time.
Connected API GetRaidTargetIndex
Connected Events RAID_TARGET_UPDATE

Example

To set a skull over your current target:

/run SetRaidTarget("target", 8)

Without toggling behavior:

/run if GetRaidTargetIndex("target") ~= 8 then SetRaidTarget("target", 8) end

Patch changes

Shadowlands Patch 9.2.0 (2022-02-22): Removed invisible IDs 9 to 18.
WoW Icon update.png Patch 1.11.0 (2006-06-19): Added.

See also

Advertisement