Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Saves the game upon reaching space
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
You can’t perform that action at this time.