Game Development Community

Function executed on certain interval

by Very Interactive Person · in Torque Game Engine · 07/18/2003 (8:35 am) · 3 replies

What if I want a certain function executed on the server lets say every 30 seconds... would I use the schedule command for that? Or is there a cleaner way? I mean the only solution I know (but I'm a beginner) is to schedule the function the first time when the game starts, and inside the function schedule it again. I'm wondering if there's a different way tough.

#1
07/18/2003 (9:29 am)
Nope that's how you would do it. Re-schedule the timer.
#2
07/18/2003 (11:14 am)
Ok, thanks, I was just making sure, becuase my code kind of looked like a quick hack ;-)
#3
07/18/2003 (11:28 am)
[edit]hmmz... doublepost[/edit]