kOS-scripts/various.ks

15 lines
347 B
Plaintext

@LAZYGLOBAL OFF.
function disable_engine_gimbal {
//
// Disable engine gimbal when engine is off.
//
on (THROTTLE = 0) {
list ENGINES in engines_list.
for engine in engines_list {
if engine:HASGIMBAL set engine:GIMBAL:LOCK to (not THROTTLE).
}
return true. // preserve trigger
}
}