Game Development Community

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:
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...

#1
01/30/2008 (12:19 am)
Hi Christian,

I believe this should work:

schedule(1000,0,commandtoclient,%obj.client,'setTime',0.5);

If not here is a link to a more detailed description:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2962
#2
01/31/2008 (5:34 am)
Thanks.