WoW:API TargetNearestEnemy: Difference between revisions

m
Move page script moved page API TargetNearestEnemy to WoW:API TargetNearestEnemy without leaving a redirect
No edit summary
m (Move page script moved page API TargetNearestEnemy to WoW:API TargetNearestEnemy without leaving a redirect)
 
(5 intermediate revisions by 4 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.


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 appears to be equivalent to pressing TAB, as it only cycles through enemies that you are facing, even if there are enemies behind you that are closer.
: This is bound to the tab key by default.
 
:This function only works if initiated by a hardware event.
----
{{WoW API}}
Anonymous user