forked from JonnyOThan/tpksp-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.ks
More file actions
38 lines (27 loc) · 636 Bytes
/
launch.ks
File metadata and controls
38 lines (27 loc) · 636 Bytes
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
35
36
37
38
parameter countdown is 3.
run once "util/logging".
run once "util/util".
log_message("=== launch ===").
local v0 is getvoice(0).
from {local i is countdown.} until i = 0 step { set i to i-1.} do {
log_message(i).
v0:play(note("f4", 0.1, 0.5)).
wait 1.
}
log_message("0").
v0:play(note("c5", 0.3, 0.5)).
unlock steering.
sas on.
lock throttle to 1.
if ship:status = "prelaunch" {
stage.
}
local clamps to ship:modulesnamed("LaunchClamp").
until clamps:empty {
wait until stage:ready.
stage.
wait 0.
set clamps to ship:modulesnamed("LaunchClamp").
}
wait until velocity:surface:mag > 50.
sas off.