Open/Close door won't work? in Developer Help
|
|
Well, I made the doors, both open and closed, an object. The reason being I want it to overlay the turf below.
obj icon = 'objects.dmi' door_open icon_state = "o_door" density = 0 layer = MOB_LAYER + 1 Click() set src in view(1) new /obj/door_closed(src) usr << "You latched the creeky door behind you."
door_closed icon_state = "c_door" density = 1 layer = MOB_LAYER + 1 Click() set src in view(1) new /obj/door_open(src) usr << "You slowly opened the creeky door."
|
Note: I don't get any errors, it just displays the message, but doesn't change the textures or properties of the doors.
Thanks.
|