In MSFS2020 there is the PLANE IN PARKING STATE parameter which returns true if you are in the MY HANGAR section of the PROFILE.
When in the hangar the camera state is 15 when outside but if you switch camera it can 2 or 3. I have also found the aircraft latitude and longitude will both be around 0.013974503.
In MSFS2024 the PLANE IN PARKING STATE parameter doesn't seem to work. In the aircraft configuration screen the camera state is 16 but PLANE IN PARKING STATE remains at zero. The latitude and longitude are both around -0.000000015. At the moment the only way I can differentiate between being in the aircraft configuration menu and on the runway (or apron) with the START FLIGHT button waiting to be clicked is with the latitude and longitude parameters (these will now be filled with your location). So if the camera state is 16 and latitude and longitude are around 0 then I can assume the aircraft is in the aircraft configuration screen.
When in the hangar the camera state is 15 when outside but if you switch camera it can 2 or 3. I have also found the aircraft latitude and longitude will both be around 0.013974503.
In MSFS2024 the PLANE IN PARKING STATE parameter doesn't seem to work. In the aircraft configuration screen the camera state is 16 but PLANE IN PARKING STATE remains at zero. The latitude and longitude are both around -0.000000015. At the moment the only way I can differentiate between being in the aircraft configuration menu and on the runway (or apron) with the START FLIGHT button waiting to be clicked is with the latitude and longitude parameters (these will now be filled with your location). So if the camera state is 16 and latitude and longitude are around 0 then I can assume the aircraft is in the aircraft configuration screen.
