-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.ks
34 lines (31 loc) · 1.08 KB
/
launch.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// launch initiation script
runoncepath("0:/flightlib.ks").
set ship:control:pilotmainthrottle to 0.
parameter default is 3.
parameter direction is 90.
parameter insertTarget is 80000.
parameter apTarget is 80000.
parameter countDownBool is true.
parameter gravityTurnBool is true.
parameter insertOrbitBool is true.
parameter countDownLength is round(random()*10).
if default = 3 {
print " default: if not specified, prints this message" .
print " [direction]: compass heading of launch direction".
print " [insertTarget]: Apoapsis target for orbit insertion".
print " [apTarget]: Apoapsis for target orbit".
print " [countDownBool]: If true, countdown... sortof".
print " [gravityTurnBool]: If true, do gravity turn".
print " [insertOrbitBool]: If true, insert into orbit".
print " [countDownLength]: 0-10 second countdown lenght. Kerbals don't pay this much mind".
} else {
if countDownBool {
CountDown(countDownLength).
}
if gravityTurnBool {
GravityTurn(direction, insertTarget).
}
if insertOrbitBool {
InsertOrbit(insertTarget, apTarget, direction).
}
}