jonassvensson4

Untitled

Aug 18th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- ### DATOR 2
  2. rednet.open("top")
  3.  
  4. local id,message = rednet.receive()
  5.  
  6. -- ON
  7. if message == "won" then
  8.     rs.setOutput("back", true)
  9. end
  10. if message == "bon" then
  11.     rs.setOutput("left", true)
  12. end
  13. if message == "ron" then
  14.     rs.setOutput("right", true)
  15. end
  16.  
  17.  
  18.  
  19. -- OFF
  20. if message == "woff" then
  21.     rs.setOutput("back", false)
  22. end
  23. if message == "boff" then
  24.     rs.setOutput("left", false)
  25. end
  26. if message == "roff" then
  27.     rs.setOutput("right", false)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment