This function executes a Lua script from a file or string.
boolean RunScript(string path)
Parameter | Description |
---|---|
path | script file to run |
Returns true if the script was successfully run, otherwise false is returned.
This command can run both raw Lua code files (.lua) or compiled Lua byte code (.luac). See the Lua documentation for additional information.
A build of the luac compiler is included in the "Tools" folder of the Ultra Engine install directory.