This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
API String
Richard Bunt edited this page Jul 5, 2015
·
10 revisions
API strings are used to identify values or functions within KSP, such as v.altitude
which is mapped to the altitude of the vessel you are currently flying. The API strings which are currently supported are listed below.
- Returns an integer indicating the state of antenna. 0 - Flight scene; 1 - Paused; 2 - No power; 3 - Off; 4 - Not found.
- Plotable
- Yaw [float yaw]
- Not Plotable
- Pitch [float pitch]
- Not Plotable
- Roll [float roll]
- Not Plotable
- Set Fly by Wire On or Off [int state]
- Not Plotable
- Set pitch, yaw, roll, X, Y and Z [float pitch, yaw, roll, x, y, z]
- Not Plotable
- Set pitch, yaw, roll [float pitch, yaw, roll]
- Not Plotable
- Set X, Y and Z [float x, y, z]
- Not Plotable
- Stage
- Not Plotable
- Set Throttle [float magnitude]
- Not Plotable
- Throttle
- Plotable
- Throttle Up
- Not Plotable
- Throttle Zero
- Not Plotable
- Throttle Full
- Not Plotable
- Throttle Down
- Not Plotable
- RCS [optional bool on/off]
- Not Plotable
- SAS [optional bool on/off]
- Not Plotable
- Light [optional bool on/off]
- Not Plotable
- Gear [optional bool on/off]
- Not Plotable
- Brake [optional bool on/off]
- Not Plotable
- Abort [optional bool on/off]
- Not Plotable
- Action Group 1 [optional bool on/off]
- Not Plotable
- Action Group 2 [optional bool on/off]
- Not Plotable
- Action Group 3 [optional bool on/off]
- Not Plotable
- Action Group 4 [optional bool on/off]
- Not Plotable
- Action Group 5 [optional bool on/off]
- Not Plotable
- Action Group 6 [optional bool on/off]
- Not Plotable
- Action Group 7 [optional bool on/off]
- Not Plotable
- Action Group 8 [optional bool on/off]
- Not Plotable
- Action Group 9 [optional bool on/off]
- Not Plotable
- Action Group 10 [optional bool on/off]
- Not Plotable
- Query RCS value
- Plotable
- Query SAS value
- Plotable
- Query light value
- Plotable
- Query brake value
- Plotable
- Query gear value
- Plotable
- Smart ASS Off
- Not Plotable
- Node
- Not Plotable
- Prograde
- Not Plotable
- Retrograde
- Not Plotable
- Normal Plus
- Not Plotable
- Normal Minus
- Not Plotable
- Radial Plus
- Not Plotable
- Radial Minus
- Not Plotable
- Target Plus
- Not Plotable
- Target Minus
- Not Plotable
- Relative Plus
- Not Plotable
- Relative Minus
- Not Plotable
- Parallel Plus
- Not Plotable
- Parallel Minus
- Not Plotable
- Surface [float heading, float pitch]
- Not Plotable
- Surface [double heading, double pitch, double roll]
- Not Plotable
- Time Warp [int rate]
- Not Plotable
- Universal Time
- Plotable
- Pause game
- Not Plotable
- Unpause game
- Not Plotable
- Target Name
- Plotable
- Target Type
- Plotable
- Target Distance
- Plotable
- Target Relative Velocity
- Plotable
- Target Velocity
- Plotable
- Target Periapsis
- Plotable
- Target Apoapsis
- Plotable
- Target Time to Apoapsis
- Plotable
- Target Time to Periapsis
- Plotable
- Target Inclination
- Plotable
- Target Eccentricity
- Plotable
- Target Orbital Period
- Plotable
- Target Argument of Periapsis
- Plotable
- Target Time to Transition 1
- Plotable
- Target Time to Transition 2
- Plotable
- Target Semimajor Axis
- Plotable
- Target Longitude of Ascending Node
- Plotable
- Target Mean Anomaly at Epoch
- Plotable
- Target Time of Periapsis Passage
- Plotable
- Target True Anomaly
- Plotable
- Target Orbiting Body
- Plotable
- Relative Velocity
- Plotable
- Periapsis
- Plotable
- Apoapsis
- Plotable
- Time to Apoapsis
- Plotable
- Time to Periapsis
- Plotable
- Inclination
- Plotable
- Eccentricity
- Plotable
- Epoch
- Plotable
- Orbital Period
- Plotable
- Argument of Periapsis
- Plotable
- Time to Transition 1
- Plotable
- Time to Transition 2
- Plotable
- Semimajor Axis
- Plotable
- Longitude of Ascending Node
- Plotable
- Mean Anomaly at Epoch
- Plotable
- Time of Periapsis Passage
- Plotable
- True Anomaly
- Plotable
- Sensor Information [string sensor type]
- Plotable
- Temperature sensor information
- Plotable
- Pressure sensor information
- Plotable
- Gravity sensor information
- Plotable
- Acceleration sensor information
- Plotable
- Altitude
- Plotable
- Height from Terrain
- Plotable
- Terrain Height
- Plotable
- Mission Time
- Plotable
- Surface Velocity
- Plotable
- Surface Velocity x
- Plotable
- Surface Velocity y
- Plotable
- Surface Velocity z
- Plotable
- Angular Velocity
- Plotable
- Orbital Velocity
- Plotable
- Surface Speed
- Plotable
- Vertical Speed
- Plotable
- G-Force
- Plotable
- Atmospheric Density
- Plotable
- Longitude
- Plotable
- Latitude
- Plotable
- Dynamic Pressure
- Plotable
- Name
- Plotable
- Body Name
- Plotable
- Angle to Prograde
- Plotable
- Body Name [body id]
- Plotable
- Body Atmosphere Depth [body id]
- Plotable
- Body Radius [body id]
- Plotable
- Atmosphere contains oxygen [body id]
- Plotable
- Body Sphere of Influence [body id]
- Plotable
- Rotation Period [body id]
- Plotable
- Tidally Locked [body id]
- Plotable
- Number of Bodies
- Plotable
- Body Gravitational Parameter [body id]
- Plotable
- Relative Velocity [body id]
- Plotable
- Periapsis [body id]
- Plotable
- Apoapsis [body id]
- Plotable
- Time to Apoapsis [body id]
- Plotable
- Time to Periapsis [body id]
- Plotable
- Inclination [body id]
- Plotable
- Eccentricity [body id]
- Plotable
- Orbital Period [body id]
- Plotable
- Argument of Periapsis [body id]
- Plotable
- Time to Transition 1 [body id]
- Plotable
- Time to Transition 2 [body id]
- Plotable
- Semimajor Axis [body id]
- Plotable
- Longitude of Ascending Node [body id]
- Plotable
- Mean Anomaly at Epoch [body id]
- Plotable
- Time of Periapsis Passage [body id]
- Plotable
- True Anomaly [body id]
- Plotable
- Phase Angle [body id]
- Plotable
- Resource Information [string resource type]
- Not Plotable
- Resource Information for Current Stage [string resource type]
- Not Plotable
- Max Resource Information for Current Stage [string resource type]
- Not Plotable
- Max Resource Information [string resource type]
- Not Plotable
- API Listing
- Not Plotable
- IP Addresses
- Not Plotable
- Subset of the API Listing [string api1, string api2, ... , string apiN]
- Not Plotable
- Telemachus Version
- Plotable
- Heading
- Plotable
- Pitch
- Plotable
- Roll
- Plotable
- Raw Heading
- Plotable
- Raw Pitch
- Plotable
- Raw Roll
- Plotable
- Heading calculated using the position of the vessels root part
- Plotable
- Pitch calculated using the position of the vessels root part
- Plotable
- Roll calculated using the position of the vessels root part
- Plotable
- Raw Heading calculated using the position of the vessels root part
- Plotable
- Raw Pitch calculated using the position of the vessels root part
- Plotable
- Raw Roll calculated using the position of the vessels root part
- Plotable
- Toggle Map View
- Not Plotable
- Enter Map View
- Not Plotable
- Exit Map View
- Not Plotable
- Docking x Angle
- Plotable
- Relative Pitch Angle
- Plotable
- Docking z Angle
- Plotable
- Target x Distance
- Plotable
- Target y Distance
- Plotable