Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function await(cmd,returned)
- rednet.broadcast(cmd)
- waiting = true
- while waiting do
- id,msg = rednet.receive(5)
- if not(msg == nil) then
- if msg.command == returned then
- waiting = false
- end
- end
- end
- end
- rednet.open("back")
- sleep(5)
- count = 30
- --while count > 0 do
- -- await({command="payload.batch.dupe",count=8,fuse=1,align=true},"payload.batch.done")
- -- count = count - 1
- --end
- await({command="payload.batch.dupe",count=64,fuse=10,align=true},"payload.batch.done")
- await({command="payload.batch.dupe",count=640,fuse=80,align=true},"payload.batch.done")
- rednet.broadcast({command="base.flyer.start"})
- await({command="interceptor.flyer.catch"},"interceptor.flyer.arrived")
- rednet.broadcast({command="aligner.align"})
- await({command="accelerator.accel",countX=50,countZ=50},"accelerator.done")
- rednet.broadcast({command="interceptor.flyer.start"})
- sleep(10)
- await({command="interceptor.flyer.reattach"},"interceptor.flyer.attached")
- await({command="base.flyer.catch"},"base.flyer.arrived")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement