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");

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.