This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
Use the Command API to find and run scripts by reference name.
script_run()
Run every script matching a reference name.
SignatureTypeScript contract
script_run(reference_name: string): voidParameters
| Name | Type | Required | Description |
|---|---|---|---|
reference_name | string | Yes | Reference name of the script or scripts to find and run. |
ExampleJavaScript
this.$api.command.script_run("weather-tools");Returns
voidNo direct return value is documented.