Timers...again
Shadowalker
28 Feb 2005, 08:49I think this topic was actually brought up once, but I forgot, so I'm going to ask again. I have a bomb that goes off, and it uses a timer to countdown how much time is left until it detonates. I have a command that disarms it, and I shut off the timer, but the problem is, that the timer doesn't restart; it just pauses. So, for example, let's say you disarm the bomb with 3 seconds to spare, the next time you make it go off again, instead of starting over again at 20 seconds, it counts down 3 seconds. I have a variable that actually counts down, and that can be reset back to 20, but the timer just pauses. Is there any way possible to restart it? Thanks.
Elexxorine
28 Feb 2005, 18:46you could have a variable for time left and a time that goes off every second and takes one off the variable, if it gets to zero, it goes off, if you disarm it tell it to put it to 20 again. easy.
Shadowalker
01 Mar 2005, 22:18I'm not exactly sure what you mean, but I think I catch the drift of what you're saying....I'll try it. Thanks.