WoW:API SetRaidTarget: Difference between revisions

No edit summary
Line 23: Line 23:
* In a 5-man party, all party members may assign raid icons. In a raid, only the raid leader and the assistants may do so.
* In a 5-man party, all party members may assign raid icons. In a raid, only the raid leader and the assistants may do so.
* Units may only be assigned one icon at a time; an icon may only be assigned to one unit at a time.
* Units may only be assigned one icon at a time; an icon may only be assigned to one unit at a time.
* This function does not remove the icon if you're trying to assign the icon that is already assigned to the unit. {{api|SetRaidTargetIcon}} function, provided by FrameXML, provides this toggling behavior.
* This function does not remove the icon if you're trying to assign the icon that is already assigned to the unit. {{api|SetRaidTargetIcon}} function, provided by FrameXML, provides this toggling behavior. (This note seems to be false.  SetRaidTarget does currently toggle the icon off if it is already set.  You can use [http://www.wowwiki.com/API_GetRaidTargetIndex GetRaidTargetIndex] to check if the icon already exists on the unit)
Anonymous user