MACRO targetenemyplayer

From Wowpedia
Jump to: navigation, search

Cycles your target through nearby hostile players.

/targetenemyplayer [options] direction


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.


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


  • Works exactly like the 'Target Nearest Enemy Player' keybind, but as a macro command that allows conditional execution. Specifically, it cycles through visible enemy players who are within 40 yards in the direction you are facing.
  • This does not target NPC's, see /targetenemy.
  • This does not target unflagged enemy players.
  • This will target PVP flagged enemy players regardless of the PVP flag status of the character using the macro.