ID:178523
 
Im stumped on this code I was wondering if you could help me make a verb which will open a door for 5 seconds and then it will close again? Thx
obj
door
open()
//???
sleep(50)
//???

The easiest way? It might not be what you want...

obj
door
icon='door.dmi'
icon_state="Closed"
Density=1
open()
icon_state="Open" // changes the appearance
density=0 // Allows you to walk thru
sleep(50)
icon_state="Closed"
density=1
..()