Advertisement
Cardwell

Vault_open

Apr 20th, 2021 (edited)
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. --DørÅpen
  2. rednet.open("top")
  3. local mottafra = 16
  4. local mottafra2 = 17
  5. local output = "left"
  6. while true do
  7.     id, msg = rednet.receive()
  8.     print("")
  9.     print("Fra "..id)
  10.     print(msg)
  11.  
  12.     if id == mottafra and msg == "VAULT_OPEN" then
  13.         print("Åpner dør")
  14.         rs.setOutput(output, true)
  15.         sleep(1)
  16.         rs.setOutput(output, false)
  17.     end
  18.     if id == mottafra2 and msg == "VAULT_OPEN" then
  19.         print("ADMIN: Åpner dør")
  20.         rs.setOutput(output, true)
  21.         sleep(1)
  22.         rs.setOutput(output, false)
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement