Pressing Tab will select the nearest enemy. How do I Emulate that? There is a function TargetNearestEnemy(); but when i try to use it it says that only blizzard ui can do it. And /TargetNearestEnemy doesn't register as a command. I want to create a macro which will target the nearest enemy if I don't have a focus but if i do have a focus i want to target the focus instead.
Basiclly I want to make a macro that does the following things (This is just psuedo code):
If no target then
If no focus then target nearest enemy
if focus then target focus
end if
if target then
if no focus then
focus target
clear target
end if
if focus then
focus target
target last target (The closest thing to swaping focus and target i could figure out)
end if
Basicly the only thing i can't figure out how to do is make it target the nearest enemy when there is no target and no focus.
All I know is that mods and macros cannot select targets for you.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh