Advertisement
Guest User

RenameToTour.lua

a guest
Sep 19th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. function TourDriver(lat, lon)
  2.     print "Launching..."
  3.     mechjeb.launchTo(125000, 0)
  4.     wait(mechjeb.free)
  5.     mechjeb.autoStageActivate()
  6.     print "TMI..."
  7.     mechjeb.transfer("Mun", 200000)
  8.     wait(mechjeb.free)
  9.     print "Warping to SoI..."
  10.     mechjeb.warpToEvent("soi")
  11.     wait(mechjeb.free)
  12.     print "Flying by Mun..."
  13.     mechjeb.warpToEvent("soi")
  14.     wait(mechjeb.free)
  15.     print( "Trans-Minimus injection...")
  16.     mechjeb.transfer("Minmus", 400000)
  17.     wait(mechjeb.free)
  18.     print("Warping to SoI...")
  19.     mechjeb.warpToEvent("soi")
  20.     wait(mechjeb.free)
  21.     print("Flying by Minmus...")
  22.     mechjeb.warpToEvent("soi")
  23.     wait(mechjeb.free)
  24.     print("Clearing Minmus SoI")
  25.     mechjeb.warpToEvent("Ap")
  26.     wait(mechjeb.free)
  27.     print( "Returning home...")
  28.     mechjeb.changePe(30000)
  29.     wait(mechjeb.free)
  30.     print( "Landing... Feel free to warp at your own leisure.")
  31.     wait(function() return vessel.altitudeASL < 5000 end)
  32.     mechjeb.land()
  33.     mechjeb.autoStageDeactivate()
  34.     print( "Welcome back.")
  35. end
  36.  
  37. function Tour()
  38.     local co = coroutine.create(TourDriver)
  39.     coroutine.resume(co, lat, lon)
  40. end
  41.  
  42. print "Usage: Tour()"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement