I have managed to come up with a nice way to make a character aquire a new target each time the one I have selected goes out of range or dies. The problem is that sometimes there are mobs behind walls or beneath/above me, and they get in my target window.
What I would really like to do is to prevent the macro from selecting a target that is not in line of sight, but if I have to settle for clearing the target window after the target is slected, then so be it.
Will this work? If not, am I close?
If you know how to keep it from selecting a target that is not in line of sight to start with, please let me know?
Thanks!
What I would really like to do is to prevent the macro from selecting a target that is not in line of sight, but if I have to settle for clearing the target window after the target is slected, then so be it.
Will this work? If not, am I close?
Rich (BB code):
Sub NewTarget
/target npc next radius 150
/If[${Target.ID} && !${Target.LineOfSight} /keypress esc ]
/return
If you know how to keep it from selecting a target that is not in line of sight to start with, please let me know?
Thanks!