WoW:API SetRaidTargetIcon: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
Line 27: Line 27:


: Patch 1.11 introduced RaidIcons for easier targetting. This function sets an icon on top of a targets head.
: 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).
See also [[API SetRaidTarget|SetRaidTarget]] and [[API GetRaidTargetIndex|GetRaidTargetIndex]].


{{WoW API}}
{{WoW API}}

Revision as of 09:24, 22 June 2006

WoW API < SetRaidTargetIcon

Sets a Raidicon on top of a unit.

SetRaidTargetIcon("unit", index)


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).

See also SetRaidTarget and GetRaidTargetIndex.

Template:WoW API