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;
}
//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;
}
Community Manager Michael Perry
ZombieShortbus