Fandom

WoWWiki

API CombatTextSetActiveUnit

104,759pages on
this wiki
Add New Page
Talk0 Share
WoW API < CombatTextSetActiveUnit

Alters the entity for which the COMBAT_TEXT_UPDATE event fires.

CombatTextSetActiveUnit("unit");

Arguments Edit

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

Notes Edit

  • 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 Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.