For MSFS2020, I'm trying to set up a check to see if the autopilot is on or off. It sort of works. What happens is when I first press my bound joystick button to active the autopilot it says "On Not Set" . If I push the joystick button again to disable the autopilot it then says "Off Not Set". But if I press the button again to activate it will say "On Not Set" and if then I do not presss the button and ask for the status it says "Off Not Set". Should it not still be detected in an active state? Below is my code: [Autopilot;AP;] Status
Execute external plugin, 'MSFS Agent - v1.0' using context 'getplanestate'
Begin Boolean Compare : [MSFSAgent.PlaneState.Autopilot_Master] Equals False
Say, 'AP on {INT:MSFSAgent.PlaneState.Autopilot_Master}'
Else
Say, 'AP off {INT:MSFSAgent.PlaneState.Autopilot_Master}'
End Condition