WoW API: CombatTextSetActiveUnit

From AddOn Studio
Revision as of 23:23, 7 November 2009 by WoWWiki>Starlightblunder (Created page with '{{wowapi}} Alters the entity for which the COMBAT_TEXT_UPDATE event fires. CombatTextSetActiveUnit("unit"); == Arguments == ; unit : String - UnitId of the entity you want …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < CombatTextSetActiveUnit

Alters the entity for which the COMBAT_TEXT_UPDATE event fires.

CombatTextSetActiveUnit("unit");

Arguments

unit
String - UnitId of the entity you want receive notifications for.

Notes

  • The event is tied to the entity rather than the unit -- thus, if you call CombatTextSetActiveUnit("target") and then target something else, you'll get notifications for the unit you were targeting when calling the function, rather than your new target.
  • Only one unit can be "active" at a time.
  • The COMBAT_TEXT_UPDATE event is used in to provide part of Blizzard's Floating Combat Text functionality; it fires to notify of aura gains/losses and incoming damage and heals.

See Also