ID:176860
 
how do you make it so you can only Click() on something when your close and not from far away?
Click() is a verb. Thus, you jsut need to set src in oview(2)
What Garthor said isn't going to help you. You'll have to use get_dist to check the distance from what you click. Example:

obj/thing
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

In response to tenkuu
Yes, it won't help him, except for the fact that it will, because Click() is a verb.
In response to Garthor
How about giving it a try first and see what happens? Even if I did set src in oview(1), it would still work if I were 3, 4 or however many spaces away.
In response to tenkuu
That's weird, I remember Click() being defined as a verb before....