Jump to content

Can't get timer to work...


Firemeboy

Recommended Posts

I've got a timer that counts down. When the timer reaches zero, all zones are moved to inactive, and a message is supposed to be displayed to the player. However this does not occur. Looking at the message log, it appears that the timer stops, but no message is ever sent to the player after a sufficient amount of time.

 

Wondered if anybody has had similar issues, or if I'm doing something wrong.

 

Thanks in advance.

Link to comment

I changed from a countdown to a 'tick', and it now works. Not sure why the countdown didn't work.

That's the right way to do it. A tick event will occur for countdown and interval timers. A countdown will cause only one tick event and an interval will cause many tick events. The stop event occurs when a timer is explicitly stopped in the script.

 

David.

Link to comment

Ah, there was my error. I had the actions falling in the stop timer, assuming when the countdown hit zero it stopped. Instead I should have put it in the tick section. I only need one tick, so I will change it back to the countdown, but move the actions to the 'tick' section.

 

Thanks!

Link to comment

i have a problem with the timer

i play a little sound(aprox 10 seconds)

i want to open a messagebox after 10 seconds

i have the following code:

play sound

start timer(countdown 10 seconds)When a timer tick event occurs open a message box

 

everytime the messagebox opens directly when the soundfile starts. what am i doing wrong?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...