Stage

Contents

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 bool 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 of Resource in the current stage
RESOURCESLEX List Get only the Lexicon of name String keyed Resource values in the current stage
Stage:READY
Access:

Get only

Type:

bool

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. The String key in the lexicon will match the name suffix on the Resource. 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.