I'm running a script for xp hunting and it works fine and all, but i have this problem.
Targets mob
Runs to mob
Mob is a aggro mob and runs towards my character
Mob ends up getting too close and now my character can't attack it and it spams the message unable to view target or whatever.
The script i'm running makes use of a function that turns towards target, but that doesn't seem to fix the problem as it is facing the correct direction, it is just too close to attack.
is there a function or snippet of code i could borrow that will make my character back up a few steps when this occurs?