Stage¶
Contents
EXAMPLE
Stage
You access the current stage for the vessel the kOS core is attached to with the STAGE: command.
Structure¶
-
structure
Stage
¶ Members¶ Suffix Type (units) Access Description READY
Boolean Get only Is the craft ready to activate the next stage. NUMBER
scalar Get only The current stage number for the craft RESOURCES
List
Get only the List
ofResource
in the current stageRESOURCESLEX
Lexicon
Get only the Lexicon
of nameString
keyedResource
values in the current stage
-
Stage:
READY
¶ Access: Get only
Type: Kerbal Space Program enforces a small delay between staging commands, this is to allow the last staging command to complete. This bool value will let you know if kOS can activate the next stage.
-
Stage:
NUMBER
¶ Access: Get only Type: scalar Every craft has a current stage, and that stage is represented by a number, this is it!
-
Stage:
Resources
¶ Access: Get Type: List
This is a collection of the available
Resource
for the current stage.
-
Stage:
Resourceslex
¶ Access: Get Type: Lexicon
This is a dictionary style collection of the available
Resource
for the current stage. TheString
key in the lexicon will match the name suffix on theResource
. This suffix walks the parts list entirely on every call, so it is recommended that you cache the value if it will be reference repeatedly.