Target Nearest Enemy?

What is the difference between just pressing TAB and this macro

/cleartarget
/targetenemy [noexists][dead]

??

/cleartarget – This would immediately remove your current target.
With conditions: You might combine it with other commands in a macro, such as /cleartarget [dead] (which clears your target if the target is dead).

/targetenemy: This command tells the game to target an enemy, which is usually the nearest hostile NPC or player.

[noexists]: This condition checks if you currently do not have a target. If you do not have a target, this condition will evaluate as true.

[dead]: This condition checks if your current target is dead. If your target is dead, this condition will evaluate as true.

btw PVE just incase it matters!

so which is better for clearing as a hunter tabbing or that macro…

The difference is that plain TAB cycles through targets (and the order of targets I simply do not know). Contrived example, it’s 3 on 1, you’re attacking the closest target, and there’s a caster behind it. Your target leaps aways, meanwhile another one charges up into your face. If you hit TAB, it could well cycle to the caster, and not that one beating on your face.

That macro should always target the closest one.

1 Like

The difference might be that TAB doesn’t always target the nearest enemy. Frequently it targets an enemy two townships to the north. Even if there is an enemy punching you in the face that needs targeting.

2 Likes

I macro’d /startattack into all my spells years ago, it has been fantastic. It sounds like targetenemy does the same thing, but it would be wand co patible whereas startattack starts shooting your wand and ruins spellcasting.

the macro doesnt screw up nearly as much in my opinion, compared to relying on the tab targeting which in my experience has a tendancy to target stuff in other rooms if theyre in eyeshot.
Ive been using that macro for a long while now after pulling crap from other rooms in on us and having to apologize just a couple times too many lol

100%
the tab seems to shuffle thru targets in successive order instead of targeting whats nearest…and yeah…its been known to target crap I didnt even know was there because evidently if its in my characters eyeshot, even if I missed it myself, it can target it.
The macro alleviates most of that problem as long as there is any target nearby.