DOCUMENTATION
Knowledge base

Custom Code

For more complex logic than the Property Trigger, you can use custom RPN code. The Custom Code object can both execute RPN code and also use its result as a trigger.

Learn more about RPN code here: MSFS SDK Documentation - Reverse Polish Notation

Attributes

AttributeDescription
Active On StartEnabled: the code will start executing as soon as the missions starts
Disabled: you need to activate this object during the mission, or use the Execute Once action.
Fire OnceEnabled: the object will deactivate (stop executing the code) when it fires a connection for the first time
Disabled: the object will keep firing the connected events until it is deactivated
RPN CodeCustom RPN code to execute

Actions

ActionDescription
ActivateStart executing the code every frame
DeactivateStop executing the code
Execute OnceExecute the code once

Events

EventDescription
TrueFires when the result of executing the RPN code is true (larger than or equal to 1)

See also

Search documentation

Use "exact phrases" or -word to refine your search.

Find procedures, systems, keybinds and troubleshooting across all manuals.