WoW:API TargetNearestEnemy: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API TargetNearestEnemy to API TargetNearestEnemy without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 25: | Line 25: | ||
: Selects the nearest enemy as the current target. | : Selects the nearest enemy as the current target. | ||
: This | : This is bound to the tab key by default. | ||
:This function only works if initiated by a hardware event. | :This function only works if initiated by a hardware event. |
Latest revision as of 04:47, 15 August 2023
← WoW API < TargetNearestEnemy
This function is PROTECTED, and can only be called from Blizzard code.
|
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.