Schedule problem
by CodingChris · in Torque Game Engine Advanced · 01/28/2008 (8:17 am) · 2 replies
Hi,
I just want to call a commandToClient function after 5 seconds. I made this code:
and I get this in my log:
commandtoclient(%obj.client, 'setTime', 0.5);: Unknown command.
The same function is working well a few lines above, just without schedule. I really need help...
I just want to call a commandToClient function after 5 seconds. I made this code:
schedule(5000,0,"commandtoclient(%obj.client, 'setTime', 0.5);");
and I get this in my log:
commandtoclient(%obj.client, 'setTime', 0.5);: Unknown command.
The same function is working well a few lines above, just without schedule. I really need help...
About the author
Torque Owner Mark Edmunds
I believe this should work:
If not here is a link to a more detailed description:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2962