Check if Session is running

Hello!

For my Addons (e.g. PilotsDeck, Fenix2GSX) I need to know when a Session is actively running (and when it is not). With Session meaning the State between “Ready to Fly” was pressed to “End Flight” (or “Restart Flight”) was pressed.
In the previous Version I could use the CAMERA STATE SimVar (amongst other Indicators) with great success (roughly: state < 11 == Session).

Now in 2024 the Camera States are “all over the Place” and not all Values are documented - so it is mostly Guesswork.
Tried other Variables like the Environment Variables for Is Aircraft & Walkaround being both 0, but 2024 does not update that when ending a Session.

So is there something I overlooked to check that?
Could the Documentation be updated to include all Camera States?

Thanks!

CAMERA STATE seems to be either 32 or 36 during loading (when it was usually 11 in MSFS 2020), but since these values are not documented, we have no idea what it really means or which values means what.

1 Like

Thanks for the Tip - works already better now :slight_smile: