CraftTemplate¶
- structure CraftTemplate¶
You can access
CraftTemplate
objects from theKUniverse
bound variable. Templates can be used to launch new vessels, or read initial data about a craft, such as the description.Suffix
Type
Description
Name of this craft template
The path to the craft file
The description as saved in the editor
The editor where this craft was saved
The default launch site for this craft
The default mass of the craft
The default cost of the craft
The total number of parts in this craft.
- CraftTemplate:NAME¶
- Access
Get only
- Type
Returns the name of the craft. It may differ from the file name.
- CraftTemplate:FILEPATH¶
- Access
Get only
- Type
Returns the absolute file path to the craft file.
- CraftTemplate:DESCRIPTION¶
- Access
Get only
- Type
Returns 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
Name of the editor from which the craft file was saved. Valid values are
"VAB"
and"SPH"
.
- CraftTemplate:LAUNCHSITE¶
- Access
Get only
- Type
Returns the name of the default launch site of the craft. Valid values are
"LAUNCHPAD"
and"RUNWAY"
.
- CraftTemplate:MASS¶
- Access
Get only
- Type
Returns the total default mass of the craft. This includes the dry mass and the mass of any resources loaded onto the craft by default.
- CraftTemplate:COST¶
- Access
Get only
- Type
Returns the total default cost of the craft. This includes the cost of the vessel itself as well as any resources loaded onto the craft by default.