This does not work at all XD! Needs work!
This commit is contained in:
26
boot/RadarrBoot.ks
Normal file
26
boot/RadarrBoot.ks
Normal 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
18
boot/TutorialBoot.ks
Normal 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!").
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user