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