Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --DørLukking
- rednet.open("top")
- local mottafra = 16
- local mottafra2 = 17
- local output = "right"
- while true do
- id, msg = rednet.receive()
- print("")
- print("Fra "..id)
- print(msg)
- if id == mottafra and msg == "VAULT_CLOSED" then
- print("Lukker dør!")
- rs.setOutput(output, true)
- sleep(1)
- rs.setOutput(output, false)
- end
- if id == mottafra2 and msg == "VAULT_CLOSED" then
- print("ADMIN: Lukker dør")
- rs.setOutput(output, true)
- sleep(1)
- rs.setOutput(output, false)
- end
- end
Add Comment
Please, Sign In to add comment