ID:154681
 
Is there a way to limit click distance?

Example:

Player can click something all they want, but if they are not within 1 space of it, and facing the object in question, nothing will happen.

Can someone provide an example of how this would be achieved?
In response to A.T.H.K
A.T.H.K wrote:
Hmm try searching ..

http://www.byond.com/developer/ forum/?query=Click%28%29+distance%3F+


Well thats half:


Any advice on direction? Guess i'd use get_Step, but i've never incorporated that into a click() - is it any different?
In response to Komuroto
The same way those examples have it second link I believe.

You can try get_dir