Add code for unmanned science return probe.
This commit is contained in:
17
prog/reentry.ks
Normal file
17
prog/reentry.ks
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
@lazyglobal off.
|
||||
|
||||
SAS off.
|
||||
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").
|
||||
}
|
||||
}
|
||||
|
||||
when SHIP:ALTITUDE - SHIP:GEOPOSITION:TERRAINHEIGHT < 2500 then {
|
||||
CHUTES on.
|
||||
}
|
||||
|
||||
wait until false.
|
Reference in New Issue
Block a user