-
Notifications
You must be signed in to change notification settings - Fork 67
Kerbal Type
Jeremie Rossignol edited this page Oct 27, 2020
·
13 revisions
The Kerbal class represents a Kerbal in the game. This includes ship crew, EVA Kerbals, Kerbals at the astronaut complex and applicants.
Methods
Method Signature | Description |
---|---|
float Experience()
|
Gets the Kerbal's experience. |
int ExperienceLevel()
|
Gets the Kerbal's experience level. |
ExperienceTrait ExperienceTrait()
|
Gets the Kerbal's experience trait. Valid values in stock KSP are Pilot, Engineer, Scientist and Tourist. |
RosterStatus RosterStatus()
|
Get's the Kerbal's status on the roster. Valid values are Available, Assigned, Dead, and Missing. |
KerbalType Type()
|
Gets the Kerbal's type. Valid values are Crew, Applicant, Unowned, Tourist. |
Gender Gender()
|
Gets the Kerbal's gender. Valid values are Male and Female. |
string FirstName()
|
The Kerbal's first name. |
string LastName()
|
The Kerbal's last name. Usually Kerman, but mods can change this. |
Global Functions
Function Signature | Description |
---|---|
List < Kerbal > AllKerbals()
|
Returns a list of all Kerbals in the game. |
Kerbal Kerbal( string identifier)
|
Returns the Kerbal for the given identifier. |
Kerbal NewKerbal()
|
Generates a new random Kerbal. |
Kerbal NewKerbal( Gender gender)
|
Generates a new random Kerbal with the given gender. |
Kerbal NewKerbal( Gender gender, string name)
|
Generates a new random Kerbal with the given name and gender. |
Kerbal NewKerbalWithTrait( string trait)
|
Generates a new random Kerbal with the given trait. |
Kerbal NewKerbal( Gender gender, string name, string trait)
|
Generates a new Kerbal with the given name, gender and trait. |
List < Kerbal > NewKerbals( int count )
|
Generates count new Kerbals. |
List < Kerbal > NewKerbals( int count, string trait)
|
Generates count new Kerbals of the given experience trait. |
float NextKerbalHireCost()
|
The funds cost of hiring the next astronaut. |
- General Types
- KSP Types
- Contract Configurator Objects
- Other
- Global Functions
Contract Configurator
Configuration File Syntax
Extending Contract Configurator