Game Development Community

Schedule function not working

by Nicolas Goulet · in Torque Game Engine · 09/10/2010 (7:06 pm) · 2 replies

Hi,

I'm trying to use the schedule function to load something after 20 seconds and it will just load it instantly instead. Here's my simple code.

schedule(200000, 0, LoadLevel(%level));

It just loads it instantly. I've tried lots of different settings but it seems the schedule function just doesn't care about the delay you provide to it. Does anybody know what the problem might be?

Edit : Didn't really want to post in this forum D:

#1
09/10/2010 (7:59 pm)
Try:
schedule(20000, 0, "LoadLevel",%level);

There is a nice tutorial on schedules (Plastic Gem #32), check this in resources section.
#2
09/11/2010 (5:25 pm)
Also, the OP actually has 200 seconds rather than 20.