How long is a timer really?

Non-platform specific questions.

How long is a timer really?

Postby Diana Kennedy » Tue Jun 06, 2006 8:38 am

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?
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby Diana Kennedy » Tue Jun 06, 2006 11:54 am

Now I set the timer to 300000 and it last even less...
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby makslane » Tue Jun 06, 2006 12:54 pm

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Diana Kennedy » Tue Jun 06, 2006 1:01 pm

Thank you makslane - this works.

I hope you can fix this bug for the next release! :)
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron