This does not work at all XD! Needs work!

This commit is contained in:
2021-04-09 01:21:43 -04:00
parent 9938f4b48e
commit 7cbd00f241
5 changed files with 261 additions and 0 deletions

26
boot/RadarrBoot.ks Normal file
View File

@@ -0,0 +1,26 @@
// Written based off CheersKevin's youtube series
// On programming in KOS
// This script is the boot script for the Radarr
// series of surface scanning probes.
// This section from latest docs.
wait until ship:unpacked.
clearscreen.
FUNCTION NOTIFY {
PARAMETER message.
HUDTEXT("kOS: " + message, 5, 2, 50, WHITE, false).
PRINT message.
}
NOTIFY("Program booted!").
IF ALT:RADAR < 100 { // If our radar alt is lower than 10
WAIT 5.
COPY radarr.kerbin.ks FROM 0. // Copy in a prototyping script
RUN radarr.kerbin.ks. // Run the script we coppied over
} else {
NOTIFY("System booted but did not pass pre-flight checks, aborting excecution!").
}

18
boot/TutorialBoot.ks Normal file
View File

@@ -0,0 +1,18 @@
// Written based off CheersKevin's youtube series
// On programming in KOS
FUNCTION NOTIFY {
PARAMETER message.
HUDTEXT("kOS: " + message, 5, 2, 50, WHITE, false).
}
NOTIFY("Program booted!").
IF ALT:RADAR < 100 { // If our radar alt is lower than 10
WAIT 10.
COPY proto.proto1.ks FROM 0. // Copy in a prototyping script
RUN proto.proto1.ks. // Run the script we coppied over
} else {
NOTIFY("System booted but did not pass pre-flight checks, aborting excecution!").
}