Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Basic Launch Script for Low Orbit
- // By Wafiy12 - twitch account
- // Set desired altitude in meters
- SET ALTITUDE TO 100000.
- // Launch rocket
- LOCK THROTTLE TO 1.
- WAIT UNTIL SHIP:ALTITUDE > 1000.
- STAGE.
- // Gravity turn
- LOCK STEERING TO HEADING(90, 0).
- UNTIL SHIP:ALTITUDE > ALTITUDE - 10000 {
- IF SHIP:SURFACEVELOCITY:MAG < 1000 {
- LOCK THROTTLE TO 1 - (SHIP:ALTITUDE / (ALTITUDE - 10000)).
- } ELSE {
- LOCK THROTTLE TO 0.5.
- }
- }
- // Circularize orbit
- LOCK STEERING TO PROGRADE.
- UNTIL SHIP:APOAPSIS > ALTITUDE - 1000 AND SHIP:PERIAPSIS > ALTITUDE - 1000 {
- IF SHIP:VELOCITY:SURFACE:MAG < 50 {
- LOCK THROTTLE TO 0.1.
- } ELSE {
- LOCK THROTTLE TO 0.5.
- }
- }
- // Done
- LOCK THROTTLE TO 0.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement