Stage¶
Contents
EXAMPLEStage
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 READYBoolean Get only Is the craft ready to activate the next stage. NUMBERscalar Get only The current stage number for the craft RESOURCESListGet only the ListofResourcein the current stageRESOURCESLEXLexiconGet only the Lexiconof nameStringkeyedResourcevalues 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: ListThis is a collection of the available
Resourcefor the current stage.
-
Stage:
Resourceslex¶ Access: Get Type: LexiconThis is a dictionary style collection of the available
Resourcefor the current stage. TheStringkey 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.