ID:174572
 
I've been trying to set something up so Click() only works if you're in 2 tiles away. If i set src in oview(2), you can still click from over 2 tiles away. Is there a way to stop this?

-Camaro-
Camaro wrote:
I've been trying to set something up so Click() only works if you're in 2 tiles away. If i set src in oview(2), you can still click from over 2 tiles away. Is there a way to stop this?

-Camaro-

if(get_dist(Person that clicked,Other mob))
/..Do whatever
else
/..Do whatever

Somthing like that will work (No that wont work but yeah i think that might be the proc you want)
In response to Wanabe
Actually that is the proc, he needs to do something like

Click()
if(get_dist(usr,src)<=2)
//do proc stuff here
else return
In response to Jotdaniel
Thanks, that's exactly what I needed =).

-Camaro-