Service#

This service provides the IVA screens, variables and external cameras of Raster Prop Monitor.

Note

A persistent variable is a number a script and the props share: a prop shows it, and a switch or numeric input sets it. Raster Prop Monitor updates the variables that depend on the vessel only for the active vessel.

RasterPropMonitor.getAvailable()#

Whether Raster Prop Monitor is installed.

Property:

Read-only, cannot be set

Return type:

boolean

RasterPropMonitor.computer(part)#

The computer of a part. Throws an exception if the part has no Raster Prop Monitor computer.

Arguments:
Return type:

RasterPropMonitor.Computer

Game Scenes:

Flight

RasterPropMonitor.computers(vessel)#

The computers of the parts of a vessel.

Arguments:
Return type:

Array of RasterPropMonitor.Computer

Game Scenes:

Flight

RasterPropMonitor.globalPersistentVariable(vessel, name)#

The value of a persistent variable of a vessel, or null if it is not set. Throws an exception if the vessel has no Raster Prop Monitor computer.

Arguments:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

Return type:

number or null

Game Scenes:

Flight

RasterPropMonitor.setGlobalPersistentVariable(vessel, name, value)#

Set a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.

Arguments:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

  • value (number) – The value.

Game Scenes:

Flight

RasterPropMonitor.removeGlobalPersistentVariable(vessel, name)#

Remove a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.

Arguments:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

Game Scenes:

Flight

RasterPropMonitor.globalPersistentVariableChanged(vessel, name)#

An event that fires when RasterPropMonitor.globalPersistentVariable() changes. The event lasts until it is removed. Throws an exception if the vessel has no Raster Prop Monitor computer.

Arguments:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

Return type:

Event

Game Scenes:

Flight

RasterPropMonitor.monitors(vessel)#

The monitors in the IVAs of a vessel’s parts. Throws an exception if the vessel is not the active vessel.

Arguments:
Return type:

Array of RasterPropMonitor.Monitor

Game Scenes:

Flight

Note

KSP builds IVAs only for the active vessel.

RasterPropMonitor.display(vessel, name)#

The display of a vessel with the given name, which every page whose KRPCDisplay handler names it shows.

Arguments:
Return type:

RasterPropMonitor.Display

Game Scenes:

Flight

RasterPropMonitor.cameras(vessel)#

The external cameras on a vessel’s parts.

Arguments:
Return type:

Array of RasterPropMonitor.ExternalCamera

Game Scenes:

Flight