IMPORTANT!

Token Variables - along with the Gauge API - have been deprecated in Microsoft Flight Simulator 2024 in favour of the new Vars API and Event API, which work with the more extensive and supported Simulation Variables and Key Events.

This page lists the available warning and failure Token Variables for use when creating gauges using WASM / C++.

Failure States

ParametersUniversal Var MemberDescription
PP_ADFe (ENUM)0 = ok1 = fail2 = blankADF failure state.
PP_AIRe (ENUM)0 = ok1 = fail2 = blankAirspeed gauge failure state.
PP_ALTIMe (ENUM)0 = ok1 = fail2 = blankAltimeter failure state.
PP_ATTITUDEe (ENUM)0 = ok1 = fail2 = blankAttitude failure state.
PP_COMe (ENUM)0 = ok1 = fail2 = blankCOM gauge failure state.
PP_COMPASSe (ENUM)0 = ok1 = fail2 = blankCompass failure state.
PP_ELECTe (ENUM)0 = ok1 = fail2 = blankPanels circuit failure state.
PP_ENGINEe (ENUM)0 = ok1 = fail2 = blankEngine gauges failure state.
PP_FUEL_INDe (ENUM)0 = ok1 = fail2 = blankFuel indicator failure state.
PP_HEADINGe (ENUM)0 = ok1 = fail2 = blankHeading indicator failure state.
PP_VERT_VELe (ENUM)0 = ok1 = fail2 = blankVertical velocity indicator failure state.
PP_XPNDRe (ENUM)0 = ok1 = fail2 = blankTransponder failure state.
PP_NAVe (ENUM)0 = ok1 = fail2 = blankNAV gauges failure state.
PP_PITOTe (ENUM)0 = ok1 = fail2 = blankPitot system failure state.
PP_TURN_COORDe (ENUM)0 = ok1 = fail2 = blankTurn coordinator failure state.
PP_VACUUMe (ENUM)0 = ok1 = fail2 = blankVacuum system failure state.
FLY_BY_WIRE_ELAC_FAILEDb (BOOL)Will be TRUE (1) if the elevators and ailerons computer has failed, or FALSE (0) otherwise.
FLY_BY_WIRE_FAC_FAILEDb (BOOL)Will be TRUE (1) if the flight augmentation computer has failed, or FALSE (0) otherwise.
FLY_BY_WIRE_SEC_FAILEDb (BOOL)Will be TRUE (1) if the spoilers and elevators computer has failed, or FALSE (0) otherwise.

Warnings

ParametersUniversal Var MemberDescription
GEAR_WARNINGb (BOOL)Whether the gear warning is on (TRUE, 1) or off (FALSE, 0).
GPWS_WARNINGe (ENUM)0 = None1 = Sink Rate2 = Don’t sink3 = Pull Up4 = Too low gear up5 = Too low flaps up6 = Too low terrain7 = InvalidGround proximity warnings.
LOW_HEIGHT_WARNINGb (BOOL)Will be TRUE (1) if the low height warning is activated, and FALSE (0) if it’s not.
OVERSPEED_WARNINGb (BOOL)Will be TRUE (1) if the overspeed warning is activated, and FALSE (0) if it’s not.
STALL_WARNINGb (BOOL)Will be TRUE (1) if the stall warning is activated, and FALSE (0) if it’s not.
WARNING_FUELb (BOOL)Will be TRUE (1) if the fuel warning is activated, and FALSE (0) if it’s not.
WARNING_FUEL_Lb (BOOL)Will be TRUE (1) if the left fuel tank warning is activated, and FALSE (0) if it’s not.
WARNING_FUEL_Rb (BOOL)Will be TRUE (1) if the right fuel tank warning is activated, and FALSE (0) if it’s not.
WARNING_OIL_PSIb (BOOL)Will be TRUE (1) if the oil pressure warning is activated, and FALSE (0) if it’s not.
WARNING_VACUUMb (BOOL)Will be TRUE (1) if the vacuum system warning is activated, and FALSE (0) if it’s not.
WARNING_VACUUM_Lb (BOOL)Will be TRUE (1) if the left vacuum system warning is activated, and FALSE (0) if it’s not.
WARNING_VACUUM_Rb (BOOL)Will be TRUE (1) if the right vacuum system warning is activated, and FALSE (0) if it’s not.
WARNING_VOLTAGEb (BOOL)Will be TRUE (1) if the voltage warning is activated, and FALSE (0) if it’s not.

0/255