mackpack

Untitled

Apr 27th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. deployed = false
  2.  
  3. function breaker()
  4. if deployed == true then
  5. deployed = false
  6. rs.setOutput("back", false)
  7. rs.setOutput("left", true)
  8. sleep(2)
  9. rs.setOutput("left", false)
  10. end
  11. end
  12.  
  13. function deployer()
  14. if deployed == false then
  15. deployed = true
  16. rs.setOutput("back", true)
  17. end
  18. end
  19.  
  20. function mover()
  21. if deployed == false then
  22. rs.setOutput("front", true)
  23. sleep(1)
  24. rs.setOutput("front", false)
  25. sleep(1)
  26. rs.setOutput("front", true)
  27. sleep(1)
  28. rs.setOutput("front", false)
  29. end
  30. end
  31.  
  32. function main()
  33. breaker()
  34. while true do
  35. deployer()
  36. sleep(34)
  37. breaker()
  38. sleep(1)
  39. mover()
  40. sleep(1)
  41. end
  42. end
  43.  
  44. main()
Advertisement
Add Comment
Please, Sign In to add comment