| 09-06-2004, 12:12 AM | #1 |
Hi im trying to make a countdown timer that is one shot and will last 20 minutes The timer works and everything ( i e the gate explodes at 20 minutes) but the countdown timer appears and theres a title just no numbers counting down!!!! heres the code Events Time -elasped game time is 0.01 seconds Conditions -NONE Actions- Start (Expiring Timer) as a one shot timer that will expire in 1200.00 seconds Countdown Timer - Create a timer window for (Last started timer) with title Game Ends Tried using show / hide timer command ... any help please ![]() |
| 09-06-2004, 09:14 AM | #2 |
The "(Expiring Timer)" variable needs to used in a trigger with the event "Timer Expires". So you wouldn't normally put "Countdown Timer - Start (Expiring timer) as a One-shot timer that will expire in 1200.00 seconds" unless you have an event similar to "Timer Expires". If you wanted to create a new timer window, then make a trigger similar to this. Code:
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Countdown Timer - Create a timer window for (Create a periodic One-shot timer lasting 1200.00) with title End Game
Countdown Timer - Show (Last created timer window)Hope this helps you. ![]() |
| 09-07-2004, 01:21 AM | #3 |
ok create a variable for a countdown timer for this example the timer variable = t Untitled Trigger 001 Events Whatever you want Conditions Whatever you want Actions Countdown Timer - Start t as a One-shot timer that will expire in XX.XX seconds Countdown Timer - Create a timer window for (Last started timer) with title Whatever now create a new trigger: Event t expires Action Destroy t Any other actions NOTE: You dont need variables but if your doing hero revives or anything to have multiple timers at once use variables. |
