This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
run executes when the user clicks the tile or runs the script from the Otto search bar.
Its return value controls how the Flow wheel closes:
- Return a duration (in ms) to delay closing the Flow wheel by that amount.
- Return
trueto leave Flow open. - Return
falseto close Flow immediately. - Return nothing and Flow closes after the default 500ms.
run((event) => {
example_event = {
from: 'wheel' // where was the command sent from. Can be 'wheel' 'otto' or 'debugger'
}
return 1500;
});