Globals
Global variables, objects and functions common to all scripting languages.
Types:
autorun: AutoRun - An api for setting which scripts will be ran when an engine is reset.munos: OperatingSystem - Operating System - interface to MunOS.os: OperatingSystem - Operating System - interface to MunOS.ui: UI - User Interface.ksp: KSP - [Unsafe] Shortcuts to KSP API + some tools.unity: Unity - [Unsafe] Shortcuts to Unity API.types: Types - Types to be used with ROS:isoperator; Lua:isafunction.stage: Stage - Staging logic.time: Time - Current time and related functions.node: Node - Maneuver node.player: Player - [WIP] User/player controls.user: Player - [WIP] User/player controls.science: Science - [WIP] Science tools.PID: PID - PID regulator (alias tosystem.pidin ROS).app: App - [WIP] Safe API for KSP Application Launcher (toolbar/buttons). WIP
Static Fields:
native: NamespaceInstance - [Unsafe] Namespace Mappings (import of native types by namespace). More info hereassembly: GetMappings - [Unsafe] Assembly Mappings (import of native types by assembly). More info here
Static Properties:
vector(): Vector - Function for creating 3D vector / coordinate.ship: Ship - Active vessel (in flight only, null otherwise).autopilot: Autopilot - Autopilot for active vessel. (nullif no ship)bodies: Bodies - A collection of space/celestial bodies. (Safe API)target: Object - [WIP] Target of active ship. Null if none.altitude: double - Alias toship.altitude. (NaNif no ship.)apoapsis: double - Alias toship.apoapsis. (NaNif no ship.)periapsis: double - Alias toship.periapsis. (NaNif no ship.)body: SpaceBody - Orbited body (redirects toship.body,nullif no ship).atmosphere: SpaceBody.Atmosphere - Atmosphere parameters of orbited body (redirects toship.body.atmosphere,atmosphere.noneif no ship).