fsVarsGetAVarId

The fsVarsGetAVarId function can be used to get the FsAVarId of a specific AVar using its name.

 

Syntax
FsAVarId fsVarsGetAVarId(
    const char* aVarName
);

 

Parameters
Parameters Description
aVarName

The name of the AVar.

 

Return Values

This function returns the ID associated with the given name. If an error occurred, the function will return 0 (SIMVAR_NONE).

 

Example
FsAVarId AVarId = fsVarsGetAVarId("ATTITUDE INDICATOR PITCH DEGREES"); // valid
FsAVarId wrongAVarId = fsVarsGetAVarId("toto"); // returns 0