Fandom

WoWWiki

API GetRaidTargetIndex

104,945pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetRaidTargetIndex

Get which raid targetting icon is being shown over a mob or raid member.

icon=GetRaidTargetIndex("unit");

In patch 1.11, Blizzard added the ability for a raid/party leader or assistant leader to assign up to 8 different target icons to mobs or players. These icons are visible only to other players within the raid or party.

Parameters Edit

Arguments Edit

("unit")
unit 
String - The UnitId to examine.

Returns Edit

icon 
Number - a value from 1 to 8, or nil, as follows:
nil = no icon
1 = Yellow 4-point Star
2 = Orange Circle
3 = Purple Diamond
4 = Green Triangle
5 = White Crescent Moon
6 = Blue Square
7 = Red "X" Cross
8 = White Skull

Example Edit

icon=GetRaidTargetIndex("player");

Note Edit

  • Note that (at least during 1.11), GetRaidTargetIndex() will return seemingly-random indexes for units that do not exist. Always test for UnitExists() before doing GetRaidTargetIndex().
Explicit case: "raid2target" when "raid2" is offline and not targetting anything at all misbehaves.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.