ID:176846
 
ok ive got a flick proc that makes my player use an attack animation but how can i make it so that when the player clicks on an enemy mob it moves to within the range of the weapon (if its a sword then its just 1 space) and faces the mob. I would greatly apreciate any help with this.
Here:

Click()
if(get_dist(usr,src) <= 2) //Will only work if you're 2 spaces or closer to the thing.
//Do stuff
else
//Too far away

Oh and this is for clicking on the guy...