I'm pretty new to KOS so I have a few questions:
Lets say we use this code
from here .
When it enters space I want to add some code:
lock steering to prograde.
wait until eta:apoapsis < 30.
lock throttle to 1.
wait until eta:apoapsis > 50.
lock throttle to 0.
wait until periapsis = 100000.
How do I make this a loop and how do I deactivate the loop when Periapsis is = 100000?