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....
ID:266579
Apr 13 2002, 12:36 pm
|
|
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.