so i tried to amend it, problem is, i cant get the if statement just right. it ether doesnt seem to do anything or it always goes to the else statement
can some one please help me see what im doing wrong, i've tried all kinds of different posibilities.
obj/door/Click()
if (usr.loc == view(1) )
sleep(5)
icon_state= null
density=0//Making it so where the user can pass through
opacity=0
sleep(40)
icon_state="door"//Restoring the door icon state, make sure this matches the door's origonal icon state.
density=1//makes it so where the user can't pass.
opacity=1
else usr << "You are not close enough"
get_dist, learn it, use it, love it. It's perfect for what you want to do there.