Advertisement
shadowkat1010

controller2

Jan 3rd, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. rednet.open("bottom")
  2. local last = os.startTimer(0.1)
  3. while true do
  4. local numb = 0
  5. local event,arg1,arg2 = os.pullEvent()
  6. if rs.getInput("front") then
  7. numb = 208
  8. elseif rs.getInput("back") then
  9. numb = 200
  10. elseif rs.getInput("left") then
  11. numb = 203
  12. elseif rs.getInput("right") then
  13. numb = 205
  14. elseif rs.getInput("top") then
  15. elseif rs.getInput("bottom") then
  16. end
  17. rednet.broadcast(tostring(numb))
  18. if event == "timer" and arg1 == last then
  19. last = os.startTimer(0.1)
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement