• 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] Issue order problem, plz help

Status
Not open for further replies.
Level 7
Joined
Mar 29, 2009
Messages
139
Hi, i'm making a map there you start building a base upon some cliffs. Then after you build a barricade at the way up to the cliff, bears will come and attack you. The problem is, when the bears attack the base, i need to use an issue order. This is the one i tried:
  • Walk 1
    • Events
      • Unit - A unit enters Walk 1 <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • Unit - Order (Entering unit) to Attack (Random unit from (Units owned by Player 1 (Red)))
But it only works when the random unit they attack is the building that you use as barricade, or a unit that is outside the base. If the random unit that they attack were a tower inside the base or something else, they just end up running on the sides because that is most nearby when the way up is blocked by barricade. If someone knows a trigger that makes them run directly to the building that blocks the way up, please reply.

In short, There is a map kodo tag, i want the units in my map to do the same as in that map.

I GIVE REP+ TO THE ONE THAT GIVES ME THE ANSWER :D
 
Last edited:
Level 6
Joined
Jul 22, 2008
Messages
243
The answer you are looking for is:

  • Actions
    • Set YourLocation = (Center of (<Region in the base>))
    • Unit - Order (Triggering unit) to Attack-Move To YourLocation
Using a location instead of a unit makes it attack anything in it's way, including walls/units.
 
Level 6
Joined
Jul 22, 2008
Messages
243
Than you have to order them to attack a random point, and when they reach that area, send them to another random point.
 
Status
Not open for further replies.
Top