Trigger - Ever X Seconds, Units Attack-Move Region X

Status
Not open for further replies.
Level 8
Joined
Sep 23, 2007
Messages
358
Sorry if this is a really noobish question but I searched for a short period of time and im in a bit of a hurry.

How could i make a trigger that says

Every X Seconds
Unit of This Type or This Type
Attack Move to Region X

Again, help is much appreciated. Thanks
 
Something like this?
  • Trig
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
        • Loop - Actions
          • Set TempLoc = (Center of (Playable map area))
          • Unit - Order (Picked unit) to Attack-Move To TempLoc
          • Custom script: call RemoveLocation(udg_TempLoc)
Change what you need accordingly.
 
Something like this?
  • Trig
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
        • Loop - Actions
          • Set TempLoc = (Center of (Playable map area))
          • Unit - Order (Picked unit) to Attack-Move To TempLoc
          • Custom script: call RemoveLocation(udg_TempLoc)
Change what you need accordingly.

Yes, this works. Thanks :)
 
Status
Not open for further replies.
Back
Top