ID:146690
 
Code:
obj
controls
DblClick()
if(usr in view(1))
usr << browse("[browse]","window=help")


Problem description:
What I am trying to do is make it so that the browser box only comes up if you're standing next to the controls. What is currently happening is that it will come up regardless of where you are.

Change usr to src and then view(1) to oview(1,usr). You could also do an if(get_step()) check.
Gathin wrote:
What I am trying to do is make it so that the browser box only comes up if you're standing next to the controls. What is currently happening is that it will come up regardless of where you are.

Naturally, since usr is always in view(1). The default frame of reference for view() is usr. Either change usr to src, or make that view(1,src).

Lummox JR