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?
as a side note, is that the exact code you used? if so, the large number of indents might be affecting the code.