Timer

hasslarn

New Member
Reaction score
20
Hi
How do you make a timer that is ment for when the units spawns
Example

Timer is set on 60 sec

On the timer it says

"Spawn in..." 60 sec
when the timer reach 0
it should start over agian

What i mean is
Timer Start
Timer Stop
Timer Start agian
and keep doing that
 

DrinkSlurm

Eat Bachelor Chow!
Reaction score
50
When you start a timer, you can specify whether it will be a "one-shot" or a "repeating" timer.
 
C

Calidus

Guest
I believe your creating a TD? Do you need any more info?
Well, to create a Timer you should create a repeating timer if you want no waiting time between each 60 secs. Otherwise you can make a one-shot that starts when all the enemies have died.

But if you want like a one-shot timer that doesn't count down during the levels, try this...
Just create a trigger first that shows the windows and starts the timer. The first level you'd want to code like this:

Code:
1 Wave

Event: A timer ends
Condition: Timer equal to [u]your timer[/u]
Actions: Spawn X units at location...
Turn on 1 Wave End
Turn off this trigger

Code:
1 Wave End

Event: Every one seconds/A unit dies
Condition: No units owned by player X in region X
Action: Message  - Completed the first wave!" 
Start [U]your timer[/U]
Turn on 2 Wave
Turn off this trigger

Just do that stuff. The first trigger is the only one that should be initially on. I took for granted that u were going to make a TD now, but u get the point. It's all the same.
 

hasslarn

New Member
Reaction score
20
Calidus no im not creating a TD but thnx anyway

btw do you know how to create a timer does like this:
Starts
Stops
Repeats

if you know the triggers please post
and variblaes too
 
C

Calidus

Guest
Well, if you found that link over this post too hard, you could read this:

Just create a Countdown Timer variable, and call it whatever you want.

Create a trigger, set the event to a few seconds of elapsed time (like 1-5 secs), no conditions, and then set the actions:
Create a countdown timer for all players
Set your countdown timer variable = last created (countdown?) timer
Start your timer as a repeating timer with 60 seconds

These are the basics. Now create a new trigger like this:

Code:
Event: A countdown timer ends
Condition: Countdown timer equal to [U]your timer[/U]
Actions: 
Spawn [U]your units[/U] at [U]your location[/U]

Thats basic, now if you want the units to change type, do this instead:

Start by copying the first one and making the two of them look like this:

Code:
trigger 1

Event: A countdown timer ends
Condition: Countdown timer equal to [U]your timer[/U]
Actions: 
Spawn [U]your units[/U] at [U]your location[/U]
Turn on [U]trigger 2[/U]
Turn off this trigger

Code:
trigger 2 (initially off, accessed by right clicking the trigger)

Event: A countdown timer ends
Condition: Countdown timer equal to [U]your timer[/U]
Actions: 
Spawn [U]your units[/U] at [U]your location[/U]
Turn on [U]trigger 3[/U]
Turn off this trigger

And so on. You get what i mean?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top