Add launchpad code for controlling pre-launch sequence with ModularLaunchpads. (this is 100% aesthetic but it's really pretty)
This commit is contained in:
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user