DOCUMENTATION
Knowledge base

Custom Script

For very advanced mission logic, you can add a custom script to your mission. A custom script refers to an MSFS Mission script, which can be an .xml or a compiled to .spb.

You can place the mission script on a certain location in the world. And objects placed at 0,0 in the mission script will be moved to the specified location. The script will stay available throughout the entire mission.

Place the script file next to the mission .json file.

Attributes

AttributeDescription
Script PathPath to the custom script file, without extension (e.g. SavedScenarioFiles\CustomScript)
AltitudeAltitude above sea level in feet
OrientationHeading in true degrees north (not equal to magnetic north)

Actions

Custom Script doesn't have any actions or events, but you can use Custom Code to communicate using Lvars.

See also

Search documentation

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

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