WoW API: GetRaidTargetIndex

From AddOn Studio
Revision as of 03:15, 26 June 2006 by WoWWiki>Mfulton
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetRaidTargetIndex

Set which targetting icon will be shown over a mob or raid member. 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.

icon=GetRaidTargetIndex("unit");



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

Returns
icon
A value from 0 to 8, as follows,
0 = 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
icon=GetRaidTargetIndex("player");