Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetRaidTargetIndex
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ 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 == === Arguments === :("unit") :;unit : String - The [[API TYPE UnitId|UnitId]] to examine. === Returns === :;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 == icon=GetRaidTargetIndex("player"); == Note == * 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.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)