Help...

Ancient-wolf

New Member
Reaction score
22
whats the trigger on a tower defence when they go one unit at a time like
1 units goes 1 second after 1 unit goes and so on?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 001
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
+-
 

Azylaminaz

Vox Populi
Reaction score
91
Would be easier like this:
Code:
For each (Integer A) from 1 to [COLOR="Red"]N[/COLOR], do (Actions)
    Loop - Actions
        Unit - Create 1 [COLOR="Red"]Unit[/COLOR] for [COLOR="Red"]Player[/COLOR] at ([COLOR="Red"]Rect[/COLOR]) facing Default building facing (270.0) degrees
        Wait 0.75 seconds
This creates one unit every .75 seconds N times.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Integer A and B loops don't do well with waits, though. A simple solution would be to create a new integer variable, and then do an Integer Variable loop with it. Waits will work fine then.
 
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