HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Timers

06-07-2004, 05:23 PM#1
sweet5
how do I use the "event-Timer Expires" I want the event to be when my timer expires, I set my timer to a timer varible named Timer but it doesn't work. Here is the trig event, I know for a fact it is the event that is wrong so I wont paste the rest of the trig.

Code:
Time - Timer expires

and here is where I set the timer at

Code:
Actions
    -------- Game Type --------
    Set GameType = Pig Contest
    Game - Display to (All players) the text: (GameType +  was chosen! At the end of 25 minutes your pigs will be judged, the owner biggest pig wins!)
    Countdown Timer - Create a timer window for (Last started timer) with title Time until judgemen...
    Countdown Timer - Show (Last created timer window)
    Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 15.00 seconds
    Set Timer = (Last started timer)
    Set TimerWindow = (Last created timer window)
    Destructible - Kill Summer Tree Wall 0502 <gen>
    Destructible - Kill Summer Tree Wall 0214 <gen>
06-07-2004, 08:14 PM#2
johnfn
Well, the problem is that you never start a timer. You do

Countdown Timer - Create a timer window for (Last started timer)

But, you never actually start a timer. You need to do Timer - Start Timer to actually start it, and then it appears the rest of your code is correct.
06-07-2004, 08:40 PM#3
sweet5
umm look at the code...it says

Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 15.00 seconds
06-07-2004, 09:24 PM#4
johnfn
Quote:
Originally Posted by sweet5
umm look at the code...it says

Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 15.00 seconds
... Or so you think :-D. The countdown timer is assigned the value of last started timer before you actually start the timer. At least, thats what it looks like. Just start the timer beforehand.
06-07-2004, 09:29 PM#5
sweet5
the timer starts freakin fine its just that when it ends nothing happends...!
06-08-2004, 04:41 PM#6
sweet5
cant any one help!?