WoW:API GetRaidTargetIndex: Difference between revisions

m
Move page script moved page API GetRaidTargetIndex to WoW:API GetRaidTargetIndex without leaving a redirect
m (Move page script moved page API GetRaidTargetIndex to WoW:API GetRaidTargetIndex without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:
=== Returns ===
=== Returns ===


:;icon : Number - a value from 0 to 8, as follows:
:;icon : Number - a value from 1 to 8, or nil, as follows:
:::0 = no icon
:::nil = no icon
:::1 = Yellow 4-point Star
:::1 = Yellow 4-point Star
:::2 = Orange Circle
:::2 = Orange Circle
Line 31: Line 31:
== Note ==
== 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(). --[[User:Mikk|Mikk]] 05:52, 21 July 2006 (EDT)
* 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.
: Explicit case: "raid2target" when "raid2" is offline and not targetting anything at all misbehaves.
Anonymous user