obj/door
icon = '000Matrix door.dmi'
density = 1
opacity = 1
Bumped()
var/Guess=input("What is the door's password?")
if(Guess==src.password)
src.density=0
src.opacity = 0
src.icon_state = "dooropen"
sleep(50)
src.density=1
src.opacity = 1
src.icon_state = "doorclosed"
i am trying to make a door that when you bump into it then it asks you for the password and if you get it right then it looses its density and looses its opacity.I made this but it doesnt work right, can anyone help?Note: i have already made the variables if thats what you think it is, i just didnt put them on here.
Bump(mob/M)
var/Guess=input(M,"What is the door's password?") as text
~~§~~