forked from RCrockford/kOS-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest3.ks
More file actions
29 lines (22 loc) · 627 Bytes
/
test3.ks
File metadata and controls
29 lines (22 loc) · 627 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
@lazyglobal off.
// Wait for unpack
wait until Ship:Unpacked.
for eng in ship:engines
{
if eng:stage >= stage:number-1
eng:activate.
}
set ship:control:pilotmainthrottle to 1.
wait 5.
until ship:control:pilotmainthrottle <= 0
{
wait 0.
local sumThrust is 0.
for eng in ship:engines
set sumThrust to sumThrust + eng:thrust.
print "throttle: " + round(throttle, 2) + " ship:thrust=" + round(ship:thrust, 1) + " sumThrust=" + round(sumThrust, 1).
set ship:control:pilotmainthrottle to ship:control:pilotmainthrottle - 0.2.
wait 2.
}
for eng in ship:engines
eng:shutdown.