Execute_calculator_code when in walk around mode

since execute_calculator_code always refers to the user’s object, there’s a problem when trying to fire events on the user airplane when walking around.

For example, something like this:

“1 (>K:TOGGLE_AIRCRAFT_EXIT)”

Won’t work in walk around mode, most likely because the user object changed to be the avatar.

In this case, this code could have been replaced with a Simconnect call to transmit a standard event directed to the user airplane object ID.

However, what if we need to read or write things requiring more complex RPN code that might be even data driven from an external source, like user-configurable text files containing customizable RPN ?

2 Likes