Advertisement
jared314

ICBM Receiver

Aug 9th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. while true do
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. term.setTextColor(colors.green)
  6. term.write("Ready for Launch")
  7. term.setCursorPos(1,3)
  8. term.setTextColor(colors.white)
  9. term.write("Awaiting Launch Command from Main Controller...")
  10.  
  11. rednet.open("top")
  12. local id, msg, dis = rednet.receive()
  13. if msg == "launch2000000" then
  14. rs.setOutput("back", true)
  15. sleep(6)
  16. rs.setOutput("back", false)
  17. else if msg == "debug" then
  18. error()
  19. end
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement