Cardwell

Vault_open

Apr 20th, 2021 (edited)
753
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×