Skip to content

Global Functions

Jeremie Rossignol edited this page Feb 17, 2016 · 8 revisions

The following is a listing of global functions that is not directly tied to a type.

Global Functions

Function Signature Description
double ContractMultiplier() Gets the contract multiplier (equivalent to ContractPrestige().Multiplier() * @/targetBody.Multiplier()).
double Funds() Gets the player's current funds.
double StartingFunds() Get the amount of funds the player started with (typically 25000).
string RandomKerbalName(Gender) Generates a random Kerbal name for the given gender.
float Reputation() Gets the player's current reputation, which is a number in the range (-1000, 1000).
float StartingReputation() Gets the starting reputation for this game (typically 0).
float Science() Gets the player's current science.
float StartingScience() Gets the starting science for this game (typically 0).
double UniversalTime() Gets the universal time (number of game seconds since the game started).
Clone this wiki locally