WoW:API TargetNearestEnemy: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API TargetNearestEnemy to WoW:API TargetNearestEnemy without leaving a redirect)
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<center>'''TargetNearestEnemy''' ''-Documentation by danboo-''</center>
{{wowapi}}
 
{{protectedapi|2.0.1|}}
Selects the nearest enemy as the current target.
Selects the nearest enemy as the current target.


  TargetNearestEnemy(reverse);
  TargetNearestEnemy([reverse]);


----
----
;''Arguments''
;''Arguments''


:(Number reverse)
:([reverse])


:;reverse : Set this to 1 to cycle backwards
:;reverse : Boolean - Set to 1 or <tt>true</tt> to cycle backwards (optional).


----
----
Line 19: Line 19:
----
----
;''Example''
;''Example''
  TargetNearestEnemy();
  TargetNearestEnemy(); -- Targets nearest enemy.
 
;''Result''


----
----
Line 27: Line 25:


: Selects the nearest enemy as the current target.
: Selects the nearest enemy as the current target.
----
: This is bound to the tab key by default.
{{Template:WoW API}}
:This function only works if initiated by a hardware event.

Latest revision as of 04:47, 15 August 2023

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.