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:
part (
SpaceCenter.Part) – The part.
- Return type:
- Game Scenes:
Flight
- RasterPropMonitor.computers(vessel)#
The computers of the parts of a vessel.
- Arguments:
vessel (
SpaceCenter.Vessel) – The vessel.
- Return type:
ArrayofRasterPropMonitor.Computer- Game Scenes:
Flight
- RasterPropMonitor.globalPersistentVariable(vessel, name)#
The value of a persistent variable of a vessel, or
nullif 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 thePERSISTENT_prefix.
- Return type:
numberornull- 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 thePERSISTENT_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 thePERSISTENT_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 thePERSISTENT_prefix.
- Return type:
- 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:
vessel (
SpaceCenter.Vessel) – The active vessel.
- Return type:
ArrayofRasterPropMonitor.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
KRPCDisplayhandler names it shows.- Arguments:
vessel (
SpaceCenter.Vessel) – The vessel.name (
string) – The name of the display.
- Return type:
- Game Scenes:
Flight
- RasterPropMonitor.cameras(vessel)#
The external cameras on a vessel’s parts.
- Arguments:
vessel (
SpaceCenter.Vessel) – The vessel.
- Return type:
ArrayofRasterPropMonitor.ExternalCamera- Game Scenes:
Flight