Created
December 13, 2017 03:27
-
-
Save KSAMissionCtrl/95e86da18d55062bf7909d88e9f6394b to your computer and use it in GitHub Desktop.
Saves the game upon reaching space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when ship:altitude >= 70000 then { | |
if kuniverse:canquicksave { | |
// works if the engines are not thrusting | |
kuniverse:quicksaveto(ship:name). | |
} else { | |
// works under any circumstances | |
kuniverse:quicksave. | |
// wait for the engines to stop thrusting then saveto | |
when kuniverse:canquicksave then { | |
kuniverse:quicksaveto(ship:name). | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment