Add option to keep antennae extended for more control during reentry.

This commit is contained in:
2021-08-17 04:13:38 -04:00
parent b8f6e90e1f
commit 5a1e297977
2 changed files with 11 additions and 5 deletions

View File

@ -3,6 +3,8 @@
// Primarily written for small science payload probes.
function PerformReentry {
parameter retractAntennae is true.
SAS off.
// stage until only stage 0 remains.
@ -12,9 +14,11 @@ function PerformReentry {
lock STEERING to SHIP:SRFRETROGRADE.
for p in SHIP:PARTS {
if p:MODULES:Find("ModuleRTAntenna") > -1 and p:GetModule("ModuleRTAntenna"):ALLEVENTNAMES:Find("Deactivate") > -1 {
p:GetModule("ModuleRTAntenna"):DoEvent("Deactivate").
if retractAntennae {
for p in SHIP:PARTS {
if p:MODULES:Find("ModuleRTAntenna") > -1 and p:GetModule("ModuleRTAntenna"):ALLEVENTNAMES:Find("Deactivate") > -1 {
p:GetModule("ModuleRTAntenna"):DoEvent("Deactivate").
}
}
}