engine_getscript (char* name )

 LC  Returns the pointer to a lite-C function of the current script. In case of overloaded functions, a pointer to the first function is returned. Can be used for real time debugging, or for calling a script function from a plugin DLL.

Parameters:

name - name of the function.

Returns:

Function pointer, or NULL when the function doesn't exist.

Example (lite-C):

void pFunction(var x, var y);
...
pFunction = engine_getscript("myscriptfunction");
if (pFunction)    // if a function "myscriptfunction" exists in the script,
  pFunction(1,2); // call it

See also:

engine_open, engine_getvar, engine_getscriptinfo, engine_gettaskinfo

► latest version online