Click()
if(src in oview(1))
if(istype(usr,/mob/player))
src.icon_state = "jaildooropen"
src.density = 0
view() << 'door.wav'
loop
sleep(20)
if(src.loc == usr.loc)
goto loop
else src.icon_state = "jaildoor"; src.density = 1
Problem description:
So this is what I've got. It's supposed to wait 2 seconds then close unless the usr is in the same location. But the door closes under the usr anyways. Any ideas?