Alright! engine_getscript() did the trick....almost. heh

I tried:

STRING* my_str = "my_func";
void* myfuncptr(var my_var);

function my_func(var my_var)
{ <code>
}

function main()
{ myfuncptr = engine_getscript(_chr(my_str));
if(myfuncptr)
{ myfuncptr(1);
}
}

It turns out that engine_getscript specifically requires a char* array, a STRING* doesnt work (engine_getscript returns NULL if you use a STRING*) so I had to use _chr() to convert the STRING* to char*