|
Mortis Beginner
Joined: 10 Feb 2004 Posts: 21 Location: Sweden
|
Posted: Fri Nov 24, 2006 5:57 pm
Delaying an Alarm with 200ms. |
Greeting!
I have a script that needs to excecute an trigger every 3,2sec or 3200ms.
Problem is:
Quote: |
The smallest period of time that can be matched by an alarm is half a second. |
Any brilliant ideas out there?
I guess you could use #WAIT but i'd rather not.
And if you switch alarm length each time, first 3000ms then 3500ms, you end up with 3250ms avarage but it's messy as the trigger is inherited. |
|
_________________ When you lose, dont lose the lesson. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 24, 2006 7:07 pm |
Doesn't a wait-state trigger operate on milliseconds like #WAIT? I suppose you could more elegantly include that in your script as a replacement of the alarm, but at it's simplest you could have an alarm that gets you close to the time needed and then have it enable the wait-state trigger to zero in on the correct time.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Nov 24, 2006 9:56 pm |
Lets see, .5 second is less than 3.2 seconds. What was the problem again?
The half a second was an imposed limit in one of the betas at the time I worked on the help file. I don't believe that limit was actually removed, but it may have been. In any case, that particular limit was for alarms of less then .5 seconds at the time of creation. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Mortis Beginner
Joined: 10 Feb 2004 Posts: 21 Location: Sweden
|
Posted: Sat Nov 25, 2006 6:18 am |
Ahh. MattLofton, your idea worked. First I made an alarm that triggered after 3 sec then waited 200ms.
And Vijilante, are seeing your reply I did a quick test to see if the limit was there. And it wasnt! Stupid of me not to test that before I posted here.
Thanks for the quick replies. |
|
_________________ When you lose, dont lose the lesson. |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sun Nov 26, 2006 7:47 pm |
i use alarms of +.01 so i don't believe this limit exists
|
|
|
|
|
|