Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API SetRaidTargetIcon

From WoW Classic Wiki
"I" iconThis function is not a real API. It is defined by FrameXML in FrameXML/TargetFrame.lua.


SetRaidTargetIcon("unit", index)

Sets or clears a Raidicon on top of a unit.


Parameters

Arguments

("unit", index)
unit
String - UnitID, e.g. "target"
index
Integer - Index of the RaidIcon, see example below

Example

SetRaidTargetIcon("target", 1);  -- Star
SetRaidTargetIcon("target", 2);  -- Circle
SetRaidTargetIcon("target", 3);  -- Diamond
SetRaidTargetIcon("target", 4);  -- Triangle
SetRaidTargetIcon("target", 5);  -- Moon
SetRaidTargetIcon("target", 6);  -- Square
SetRaidTargetIcon("target", 7);  -- Cross
SetRaidTargetIcon("target", 8);  -- Skull
SetRaidTargetIcon("target", 0);  -- Remove RaidIcon

Details

Patch 1.11 introduced RaidIcons for easier targetting. This function sets an icon on top of a targets head.

Setting the same icon twice to the same target will drop the icon (look at the function in TargetFrame.lua).

shortcut iconSee Also: SetRaidTarget and GetRaidTargetIndex