Including Other Scripts

You can use the include("scriptname") function to include scripts within scripts. This enables you to write utility scripts to use repeatedly within multiple scripts. The include("scriptname") function executes like other ModScript functions; the referenced script is not executed until the function call is reached. Use include statements at the top of your script to ensure that functions defined in the included scripts are defined prior to any line in the script that uses those functions.

Using include

The following information pertains to the include("scriptname") function:

Also see include().