Add launchpad code for controlling pre-launch sequence with ModularLaunchpads. (this is 100% aesthetic but it's really pretty)
This commit is contained in:
parent
4c356b61ab
commit
6be96ebf8a
4 changed files with 80 additions and 0 deletions
|
@ -35,6 +35,8 @@ function Launch {
|
|||
parameter pitchTime is 30.
|
||||
parameter autoStage is true.
|
||||
|
||||
NoFuelResources(true).
|
||||
|
||||
// Configure subsystems.
|
||||
RCS off.
|
||||
SAS off.
|
||||
|
|
|
@ -23,3 +23,13 @@ function SolarPanels {
|
|||
PANELS off.
|
||||
}
|
||||
}
|
||||
|
||||
function NoFuelResources {
|
||||
parameter enable is true.
|
||||
|
||||
for part in SHIP:PartsTagged("nofuel") {
|
||||
for resource in part:RESOURCES {
|
||||
set resource:ENABLED to enable.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue