Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TourDriver(lat, lon)
- print "Launching..."
- mechjeb.launchTo(125000, 0)
- wait(mechjeb.free)
- mechjeb.autoStageActivate()
- print "TMI..."
- mechjeb.transfer("Mun", 200000)
- wait(mechjeb.free)
- print "Warping to SoI..."
- mechjeb.warpToEvent("soi")
- wait(mechjeb.free)
- print "Flying by Mun..."
- mechjeb.warpToEvent("soi")
- wait(mechjeb.free)
- print( "Trans-Minimus injection...")
- mechjeb.transfer("Minmus", 400000)
- wait(mechjeb.free)
- print("Warping to SoI...")
- mechjeb.warpToEvent("soi")
- wait(mechjeb.free)
- print("Flying by Minmus...")
- mechjeb.warpToEvent("soi")
- wait(mechjeb.free)
- print("Clearing Minmus SoI")
- mechjeb.warpToEvent("Ap")
- wait(mechjeb.free)
- print( "Returning home...")
- mechjeb.changePe(30000)
- wait(mechjeb.free)
- print( "Landing... Feel free to warp at your own leisure.")
- wait(function() return vessel.altitudeASL < 5000 end)
- mechjeb.land()
- mechjeb.autoStageDeactivate()
- print( "Welcome back.")
- end
- function Tour()
- local co = coroutine.create(TourDriver)
- coroutine.resume(co, lat, lon)
- end
- print "Usage: Tour()"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement