• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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