Advertisement
JaMaNi133

testCode

Aug 21st, 2024 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. function await(cmd,returned)
  2.     rednet.broadcast(cmd)
  3.     waiting = true
  4.     while waiting do
  5.         id,msg = rednet.receive(5)
  6.         if not(msg == nil) then
  7.             if msg.command == returned then
  8.                 waiting = false
  9.             end
  10.         end
  11.     end
  12. end
  13.  
  14. rednet.open("back")
  15. sleep(5)
  16. count = 30
  17. --while count > 0 do
  18. --  await({command="payload.batch.dupe",count=8,fuse=1,align=true},"payload.batch.done")
  19. --  count = count - 1
  20. --end
  21.  
  22. await({command="payload.batch.dupe",count=64,fuse=10,align=true},"payload.batch.done")
  23. await({command="payload.batch.dupe",count=640,fuse=80,align=true},"payload.batch.done")
  24.  
  25.  
  26.  
  27.  
  28. rednet.broadcast({command="base.flyer.start"})
  29. await({command="interceptor.flyer.catch"},"interceptor.flyer.arrived")
  30. rednet.broadcast({command="aligner.align"})
  31. await({command="accelerator.accel",countX=50,countZ=50},"accelerator.done")
  32. rednet.broadcast({command="interceptor.flyer.start"})
  33. sleep(10)
  34. await({command="interceptor.flyer.reattach"},"interceptor.flyer.attached")
  35. await({command="base.flyer.catch"},"base.flyer.arrived")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement