Game Development Community

How can I call the script function inside the engine?

by kushinn · in Torque 3D Beginner · 08/24/2012 (8:23 pm) · 2 replies

A1.How can I call the script function inside the engine?

//Cpp code
//the main looping
int TorqueMain(int argc, const char **argv)
{
if (!torque_engineinit(argc, argv))
return 1;
while(torque_enginetick())
{
//call my script "function s() { echo("okay!"); }"
//TO DO here

}

torque_engineshutdown();

return 0;

}

About the author

Recent Threads


#1
08/25/2012 (11:40 am)
Con::executef(...)
#2
08/26/2012 (8:46 pm)
@Michael

Thanks!