Advertisement
wirawafiy1

Untitled

Oct 19th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. function launch()
  2. local vessel = getActiveVessel()
  3.  
  4. if not vessel:hasModule("ScanSat") then
  5. print("ScanSat is not installed")
  6. return
  7. end
  8.  
  9. if not vessel:hasModule("LaserDist") then
  10. print("LaserDist is not installed")
  11. return
  12. end
  13.  
  14. if not vessel:hasModule("SurfaceLights") then
  15. print("SurfaceLights is not installed")
  16. return
  17. end
  18.  
  19. if not vessel:hasModule("WarpEverywhere") then
  20. print("WarpEverywhere is not installed")
  21. return
  22. end
  23.  
  24. if not vessel:hasModule("KosForAllVisual: EnvironmentalVisualEnhancements (volumetrics edition)") then
  25. print("EnvironmentalVisualEnhancements (volumetrics edition) is not installed")
  26. return
  27. end
  28.  
  29. if not vessel:hasModule("RealPlume") then
  30. print("RealPlume is not installed")
  31. return
  32. end
  33.  
  34. if not vessel:hasModule("Scatterer") then
  35. print("Scatterer is not installed")
  36. return
  37. end
  38.  
  39. if not vessel:hasModule("TUFX") then
  40. print("TUFX is not installed")
  41. return
  42. end
  43.  
  44. if not vessel:hasModule("Waterfall") then
  45. print("Waterfall is not installed")
  46. return
  47. end
  48.  
  49. if not vessel:hasModule("Parallax") then
  50. print("Parallax is not installed")
  51. return
  52. end
  53.  
  54. if not vessel:hasModule("Restock") then
  55. print("Restock is not installed")
  56. return
  57. end
  58.  
  59. if not vessel:hasModule("RocketSupport: KRPC") then
  60. print("KRPC is not installed")
  61. return
  62. end
  63.  
  64. if not vessel:hasModule("KOS") then
  65. print("KOS is not installed")
  66. return
  67. end
  68.  
  69. if not vessel:hasModule("KOS-StockCamera") then
  70. print("KOS-StockCamera is not installed")
  71. return
  72. end
  73.  
  74. if not vessel:hasModule("KOS-Scansat") then
  75. print("KOS-Scansat is not installed")
  76. return
  77. end
  78.  
  79. if not vessel:hasModule("KOS-EVA") then
  80. print("KOS-EVA is not installed")
  81. return
  82. end
  83.  
  84. if not vessel:hasModule("KOS-Career") then
  85. print("KOS-Career is not installed")
  86. return
  87. end
  88.  
  89. if not vessel:hasModule("QuickStart") then
  90. print("QuickStart is not installed")
  91. return
  92. end
  93.  
  94. print("Launching...")
  95.  
  96. vessel:setStage(1)
  97. vessel:ignite()
  98.  
  99. while vessel:getThrust() > 0 do
  100. vessel:update()
  101. end
  102.  
  103. print("Stage 1 complete")
  104.  
  105. vessel:setStage(2)
  106. vessel:ignite()
  107.  
  108. while vessel:getThrust() > 0 do
  109. vessel:update()
  110. end
  111.  
  112. print("Stage 2 complete")
  113.  
  114. vessel:setStage(3)
  115. vessel:ignite()
  116.  
  117. while vessel:getThrust() > 0 do
  118. vessel:update()
  119. end
  120.  
  121. print("Stage 3 complete")
  122.  
  123. vessel:setStage(4)
  124. vessel:ignite()
  125.  
  126. while vessel:getThrust() > 0 do
  127. vessel:update()
  128. end
  129.  
  130. print("Stage 4 complete")
  131.  
  132. vessel:setStage(5)
  133. vessel:ignite()
  134.  
  135. while vessel:getThrust() > 0 do
  136. vessel:update()
  137. end
  138.  
  139. print("Stage 5 complete")
  140.  
  141. vessel:setStage(6)
  142. vessel:ignite()
  143.  
  144. while vessel:getThrust() > 0 do
  145. vessel:update()
  146. end
  147.  
  148. print("Stage 6 complete")
  149.  
  150. vessel:setStage(7)
  151. vessel:ignite()
  152.  
  153. while vessel:getThrust() > 0 do
  154. vessel:update()
  155. end
  156.  
  157. print("Stage 7 complete")
  158.  
  159. vessel:setStage(8)
  160. vessel:ignite()
  161.  
  162. while vessel:getThrust() > 0 do
  163. vessel:update()
  164. end
  165.  
  166. print("Stage 8 complete")
  167.  
  168. vessel:setStage(9)
  169. vessel:ignite()
  170.  
  171. while vessel:getThrust() > 0 do
  172. vessel:update()
  173. end
  174.  
  175. print("Stage 9 complete")
  176.  
  177. vessel:setStage(10)
  178. vessel:ignite()
  179.  
  180. while vessel:getThrust() > 0 do
  181. vessel:update()
  182. end
  183.  
  184. print
  185.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement