Getting the address of a script function
by Jared Hoberock · in Torque Game Engine · 03/22/2002 (2:38 pm) · 1 replies
Is there a way to get the address of a script function so that I can register the function as a callback in c++ code? Essentially, I want to init the class with the address of the function and then have the class call the function on an event.
Thanks,
J
Thanks,
J
About the author
Torque Owner Bryan "daerid" Ross
You can use:
Con::execute or Con::executef
to call script function from code.
Each one takes a null terminated string as an argument which is the name of the script function you want to call.