CraftTemplate¶
-
structure
CraftTemplate¶ You can access
CraftTemplateobjects from theKUniversebound variable. Templates can be used to launch new vessels, or read initial data about a craft, such as the description.Suffix Type Description NAMEStringName of this craft template FILEPATHStringThe path to the craft file DESCRIPTIONStringThe description as saved in the editor EDITORStringThe editor where this craft was saved LAUNCHSITEStringThe default launch site for this craft MASSScalarThe default mass of the craft COSTScalarThe default cost of the craft PARTCOUNTScalarThe total number of parts in this craft.
-
CraftTemplate:
NAME¶ Access: Get only Type: StringReturns the name of the craft. It may differ from the file name.
-
CraftTemplate:
FILEPATH¶ Access: Get only Type: StringReturns the absolute file path to the craft file.
-
CraftTemplate:
DESCRIPTION¶ Access: Get only Type: StringReturns the description field of the craft, which may be edited from the drop down window below the craft name in the editor.
-
CraftTemplate:
EDITOR¶ Access: Get only Type: StringName of the editor from which the craft file was saved. Valid values are
"VAB"and"SPH".
-
CraftTemplate:
LAUNCHSITE¶ Access: Get only Type: StringReturns the name of the default launch site of the craft. Valid values are
"LAUNCHPAD"and"RUNWAY".
-
CraftTemplate:
MASS¶ Access: Get only Type: ScalarReturns the total default mass of the craft. This includes the dry mass and the mass of any resources loaded onto the craft by default.