Page 1 of 1

How long is a timer really?

PostPosted: Tue Jun 06, 2006 8:38 am
by Diana Kennedy
I keep having trouble especially with longer timed timers. I have a timer that is set on 120123 - this should be a bit like 2 minutes - or I am wrong? Actually, it last 30 secconds. Do I calculate wrong? What should I write in the min field if ant the timer lasts exactly one minute?

PostPosted: Tue Jun 06, 2006 11:54 am
by Diana Kennedy
Now I set the timer to 300000 and it last even less...

PostPosted: Tue Jun 06, 2006 12:54 pm
by makslane
You are right.
It is a bug. I will see what's happen.

Now, you can try simulate long timers with small timers.
If you need 2min timer (120000 ms), create a timer with 1000ms and set repeat count to 120 (if you want use the timer only once).

Now, in the timer event, use a script like this:

Code: Select all
count++;
if(count >= 120)
{
    //Your action here
}


Create the count variable as an Intege, actor variable.

PostPosted: Tue Jun 06, 2006 1:01 pm
by Diana Kennedy
Thank you makslane - this works.

I hope you can fix this bug for the next release! :)