Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Fix the behavioral description based on source code inspection of FrameXML/ChatFrame.lua and direct experimentation)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{macroapi}} __NOTOC__
+
{{macroapi}}
 
Cycles your target through nearby hostile entities.
 
 
/targetenemy [options] direction
 
Sets your current target to a nearby ''hostile'' unit.
 
/targetenemy options
 
Works exactly like a tab-target in the default UI but as a macro command that allows conditional execution.
 
 
 
== Aliases ==
 
:none
 
   
 
== Usage ==
  +
{{SecureCmdOptions|Value}}
   
 
== Arguments ==
 
== Arguments ==
  +
;direction: if <code>true</code> or number that is at least <code>1</code>, cycles through nearby hostile entities in reverse order.
:;options : Options to search with, separated by commas, enclosed in [ ] (see [[MACRO target|target]])
 
   
 
== Notes ==
 
== Notes ==
:Unlike /target, this command does NOT accept a target name as an argument - any arguments after the [ ] options are silently ignored.
+
* Unlike /target, this command does NOT allow you to specify what to target by name or unit.
:Units who are attackable, but not hostile (such as creeps), are not targeted with this command.
+
* Units which are attackable, but not hostile (such as creeps), are not included in the list of potential targets.

Latest revision as of 19:24, 24 April 2018

Cycles your target through nearby hostile entities.

/targetenemy [options] direction

Usage

This command accepts secure command options. The value associated with the first satisfied condition will be interpreted as described below. If no conditions are satisfied, no action will be performed.

Arguments

direction
if true or number that is at least 1, cycles through nearby hostile entities in reverse order.

Notes

  • Unlike /target, this command does NOT allow you to specify what to target by name or unit.
  • Units which are attackable, but not hostile (such as creeps), are not included in the list of potential targets.