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
| Attribute | Description |
|---|---|
| Active On Start | Enabled: 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 Once | Enabled: 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 Code | Custom RPN code to execute |
Actions
| Action | Description |
|---|---|
| Activate | Start executing the code every frame |
| Deactivate | Stop executing the code |
| Execute Once | Execute the code once |
Events
| Event | Description |
|---|---|
| True | Fires when the result of executing the RPN code is true (larger than or equal to 1) |
See also
- For simple logic, use Property Trigger
DOCUMENTATION