FANDOM


Description

Runs the specified LUA script from its main function, if possible.

int DXScript::runScriptFromMain(std::string _filePath)

Parameters

Type Name Description
std::string _filePath Path to the script file, without the file extension.



Returns

Zero for success, nonzero for failure. For more detail of a failure, this function returns a member of the eScriptReturns enumeration.

Example

DXScript *dxscr = new DXScript();
dxscr->runScriptFromMain("scripts/callC");