Game Development Community

C# command that I can't find

by Matthew Hoesterey · in Torque X 2D · 11/09/2007 (8:24 pm) · 2 replies

This is prolly something really basic I just haven't been able to find it. I want to reset a variable in a function after x sec. whats the command to wait x time before doing something?

#1
11/10/2007 (2:19 am)
Use the System.Timers.Timer class. You may need some familiarity with event handling, but I think MSDN probably has an easy to follow sample you can use.
#2
11/10/2007 (2:40 am)
Thanks :)