Skip to main content

Function: GetRegisteredSimVarValue()

GetRegisteredSimVarValue(regSimVarDef): any

Defined in: src/sdk/data/SimVars.ts:205

Gets the value of a SimVar using a registered SimVar definition. This function is more performant than SimVar.GetSimVarValue().

Parameters​

ParameterTypeDescription
regSimVarDefReadonly<RegisteredSimVarDefinition>The registered SimVar definition describing the value to get.

Returns​

any

The value of the SimVar described by the specified registered SimVar definition, or null if the value could not be retrieved.