ID:143261
 
Code:
Door
New(client/C)
C.screen += src
..()
icon = 'Hub.dmi'
icon_state = "BU22"
density = 1
layer=MOB_LAYER+3
screen_loc = "3,6"
Click()
if(usr.D3 == 1)
if(usr.D1 == 1)
usr.D2 = 1
alert("Activated")
for(var/obj/Doors/Closed/D in view(2))
D.icon_state = "Opening"
sleep(5)
D.icon_state = "Open"
D.density = 0
sleep(25)
D.icon_state = "Closing"
sleep(5)
D.icon_state = "Close"
D.density = 1
else
usr << "Beep, Beep"
else
usr << "Beep, Beep"


Problem description:

I have made a system where you push a combniation of buttons to open a door, i have done that, however when the door closes the icon becomes blank.

Can you help?


are you sure the icon state is "close"?
as a side note, is that the exact code you used? if so, the large number of indents might be affecting the code.
In response to Kageyuga
that is the code i use, i took it straight from the dm file, and the icon state is close
Always keep in mind DMI is cap sensitive so if you enter, icon_state="Closed", and your icon state is lower case closed it will not apear.