Torque 3D 3.7
Con::execute Function
ConsoleValueRef execute(S32 argc, const char* argv[]);

Call a script function from C/C++ code. 

@param argc Number of elements in the argv parameter @param argv A character string array containing the name of the function to call followed by the arguments to that function. @code // Call a Torque script function called mAbs, having one parameter. char* argv[] = {"abs", "-9"}; char* result = execute(2, argv); @endcode

this function restores the console stack on return.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!