Game Development Community

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

#1
03/23/2002 (3:16 pm)
Script functions don't necessarily have addresses.

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.