Advertisement
Guest User

elso

a guest
Sep 21st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. rednet.open("bottom")
  2.  
  3. while true do
  4. sleep(0.1)
  5. if rs.getInput("left", true) then
  6. rednet.broadcast("left")
  7. end
  8. if rs.getInput("right", true) then
  9. rednet.broadcast("right")
  10. end
  11. if rs.getInput("front", true) then
  12. rednet.broadcast("front")
  13. end
  14. if rs.getInput("back", true) then
  15. rednet.broadcast("back")
  16. end
  17. if rs.getInput("top", true) then
  18. rednet.broadcast("top")
  19. end
  20. sleep(0.1)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement