Scanner#

type krpc_ScanSat_Scanner_t#

A SCANsat scanner on a part. Obtained by calling krpc_ScanSat_Scanner() or krpc_ScanSat_Scanners().

KRPC_CLASS_SCANSAT_SCANNER#

The service and class ids of the class, for krpc_KRPC_Type_ClassTypeById().

krpc_error_t krpc_ScanSat_Scanner_Name(krpc_connection_t connection, char **returnValue, krpc_ScanSat_Scanner_t instance)#

Name of the PartModule. For example, “ModuleEngines”.

Inherited from krpc_SpaceCenter_Module_Name().

krpc_error_t krpc_ScanSat_Scanner_Part(krpc_connection_t connection, krpc_SpaceCenter_Part_t *returnValue, krpc_ScanSat_Scanner_t instance)#

The part that contains this module.

Inherited from krpc_SpaceCenter_Module_Part().

krpc_error_t krpc_ScanSat_Scanner_Config(krpc_connection_t connection, krpc_SpaceCenter_ConfigNode_t *returnValue, krpc_ScanSat_Scanner_t instance)#

The static configuration of the module, as found in the part’s cfg file. This provides access to data that is not exposed as a field, such as the resources produced by a generator. Returns nullptr if the module’s configuration node cannot be found.

Inherited from krpc_SpaceCenter_Module_Config().

krpc_error_t krpc_ScanSat_Scanner_FieldList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_ScanSat_Scanner_t instance)#

A list of all the fields of the module, including those not visible in the right-click menu of the part. Filter by krpc_SpaceCenter_PartField_Visible() to get just the visible ones.

Inherited from krpc_SpaceCenter_Module_FieldList().

krpc_error_t krpc_ScanSat_Scanner_EventList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_ScanSat_Scanner_t instance)#

A list of all the events of the module, including those not currently visible or active. Events are the clickable buttons visible in the right-click menu of the part. Filter by krpc_SpaceCenter_PartEvent_Visible() and krpc_SpaceCenter_PartEvent_Active() to get just the ones shown in the menu.

Inherited from krpc_SpaceCenter_Module_EventList().

krpc_error_t krpc_ScanSat_Scanner_ActionList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_ScanSat_Scanner_t instance)#

A list of all the actions of the module. These are the parts actions that can be assigned to action groups in the in-game editor.

Inherited from krpc_SpaceCenter_Module_ActionList().

krpc_error_t krpc_ScanSat_Scanner_ScanTypes(krpc_connection_t connection, krpc_ScanSat_ScanType_t *returnValue, krpc_ScanSat_Scanner_t instance)#

The scan types of the scanner.

krpc_error_t krpc_ScanSat_Scanner_Active(krpc_connection_t connection, bool *returnValue, krpc_ScanSat_Scanner_t instance)#
krpc_error_t krpc_ScanSat_Scanner_set_Active(krpc_connection_t connection, krpc_ScanSat_Scanner_t instance, bool value)#

Returns whether the scanner is switched on, and switches it on or off, as the buttons of the part do.

Game Scenes:

Flight

Note

A resource scanner only switches on when krpc_ScanSat_InstantResourceScan() is off, or krpc_ScanSat_StockResourceScan() is off.

krpc_error_t krpc_ScanSat_Scanner_FieldOfView(krpc_connection_t connection, float *returnValue, krpc_ScanSat_Scanner_t instance)#

The field of view of the scanner at its best altitude, in degrees.

krpc_error_t krpc_ScanSat_Scanner_MinAltitude(krpc_connection_t connection, float *returnValue, krpc_ScanSat_Scanner_t instance)#

The lowest altitude the scanner scans at, in meters.

krpc_error_t krpc_ScanSat_Scanner_BestAltitude(krpc_connection_t connection, float *returnValue, krpc_ScanSat_Scanner_t instance)#

The lowest altitude for the full field of view, in meters.

krpc_error_t krpc_ScanSat_Scanner_MaxAltitude(krpc_connection_t connection, float *returnValue, krpc_ScanSat_Scanner_t instance)#

The highest altitude the scanner scans at, in meters.

krpc_error_t krpc_ScanSat_Scanner_RequiresLight(krpc_connection_t connection, bool *returnValue, krpc_ScanSat_Scanner_t instance)#

Whether the scanner only scans in daylight, when krpc_ScanSat_DaylightCheck() is on.

krpc_error_t krpc_ScanSat_Scanner_State(krpc_connection_t connection, krpc_ScanSat_ScannerState_t *returnValue, krpc_ScanSat_Scanner_t instance)#

The state of the scanner.

Game Scenes:

Flight

type krpc_ScanSat_ScannerState_t#

The state of a scanner. See krpc_ScanSat_Scanner_State().

KRPC_ENUMERATION_SCANSAT_SCANNERSTATE#

The service and enumeration ids of the enumeration, for krpc_KRPC_Type_EnumerationTypeById() and krpc_KRPC_Expression_ConstantEnumById().

KRPC_SCANSAT_SCANNERSTATE_OFF#

Switched off.

KRPC_SCANSAT_SCANNERSTATE_OUTOFRANGE#

Switched on, and outside its minimum and maximum altitudes.

KRPC_SCANSAT_SCANNERSTATE_INDARKNESS#

Switched on, and paused as it needs light and the ground below it is in darkness.

KRPC_SCANSAT_SCANNERSTATE_INRANGE#

Scanning between its minimum and best altitudes, with a reduced field of view.

KRPC_SCANSAT_SCANNERSTATE_INBESTRANGE#

Scanning between its best and maximum altitudes, with its full field of view.