DXScript::runScriptFunction

Description
Runs the specified LUA script from the specified function. Values returned from the script can be stored. int DXScript::runScriptFunction(std::string _filePath, std::string _functionName, int _argc, float * _argv, int _expectedResults, double * _resultStorage)

Parameters
















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->runScriptFunction("scripts/callToMainByFunc", "main", 0);