Player bumps door
Bump(atom/O)
if(istype(O,/turf/door))
call(/turf/door/proc/open)()
door code
door
icon = 'turf.dmi'
icon_state = "closed"
density = 1
opacity = 1
proc/open()
density = 0
opacity = 0
flick("opening",src)
icon_state = "open"
sleep(40)
flick("closing",src)
icon_state = "closed"
density = 1
opacity = 1
--Vito
try that
EDIT: Does it matter if you make it var/atom/O, as well?