MotorXP-PM Scripting API
    Preparing search index...

    Function include

    • include() includes the contents of another script file. It allows library functions, classes, and other code to be reused without copying them manually.

      Parameters

      • path: string

        Path to the script file to include, absolute or relative to includeBasePath.

      Returns any

      Result of executing the included file (the value of its last expression). If the file does not exist or cannot be opened, prints an error to the console and returns false. An error in the included file is thrown as an exception.