WoW API: TargetNearestEnemy

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API TargetNearestEnemy to API TargetNearestEnemy without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < TargetNearestEnemy

Selects the nearest enemy as the current target.

TargetNearestEnemy([reverse]);

Arguments
([reverse])
reverse
Boolean - Set to 1 or true to cycle backwards (optional).

Returns
nil

Example
TargetNearestEnemy(); -- Targets nearest enemy.

Description
Selects the nearest enemy as the current target.
This is bound to the tab key by default.
This function only works if initiated by a hardware event.