What is the difference between SimVar.GetSimVarValue and SimVar.GetGameVarValue

Dear Asobo,

Exploring some core .JS files I found a function SimVar.GetGameVarValue and this is not documented anywhere.

Can we get an explanation of what is SimVar.GetGameVarValue vs SimVar.GetSimVarValue and when, why to use it?

There is also SimVar.SetGameVarValue and we don’t know what is this for either…


Hello @Simbol

GameVars are a specific set of variables that can only be accessed in JS.
A raw list can be seen here:
JS_LISTENER_GAMEVARS (flightsimulator.com)

Always prefer using simvars and use gamevars when you have no equivalent.


1 Like

Thanks Sylvain…

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.