From 2e65161467df98c7283c0919bf47a8b1c0d67710 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 8 Feb 2019 22:16:20 +0100 Subject: [PATCH] Add deploy all fairings/antennas helper functions. --- lib/rocket.ks | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/rocket.ks b/lib/rocket.ks index b0fa086..75138d8 100644 --- a/lib/rocket.ks +++ b/lib/rocket.ks @@ -51,6 +51,22 @@ function isp_sum { } +function deploy_fairings { + print "Deploying fairings". + for module in SHIP:modulesnamed("ModuleProceduralFairing") { + module:doaction("deploy", true). + } +} + + +function extend_antennas { + print "Extending antennas". + for module in SHIP:modulesnamed("ModuleDeployableAntenna") { + module:doaction("extend antenna", true). + } +} + + function unlock_control { // // Ensure that the throttle is 0 and that the player is not locked out of control.