• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 8
Joined
Sep 23, 2007
Messages
357
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.
 
Level 8
Joined
Sep 23, 2007
Messages
357
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.
Top