ID:266579
 
obj/door
icon = 'jaildoor.dmi'
icon_state = "closed"
density = 1
Click()
if(src.density)
src.icon_state = "open"
src.density = 0
icon = 'cobble.dmi'
else
src.icon_state = "closed"
src.density = 1
but then... how do i close the door again? it just stays red cobble....
Magnus VI wrote:
obj/door
icon = 'jaildoor.dmi'
icon_state = "closed"
density = 1
Click()
if(src.density)
src.icon_state = "open"
src.density = 0
icon = 'cobble.dmi'
else
src.icon_state = "closed"
src.density = 1
but then... how do i close the door again? it just stays red cobble....

Looks like you set the icon to cobble.dmi when you open the door, but you don't set it back to jaildoor.dmi when you close it. So, it's probably closing just fine, but the icon isn't changing back.