• 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.

Let attack all units in gebiet000 to gebiet001?

Status
Not open for further replies.
Level 3
Joined
Dec 7, 2008
Messages
24
hi all...
how to let attack the zombies in region 000 the units in region 001?
 
Level 3
Joined
Jun 6, 2007
Messages
48
This will get all the zombies in your Region 000 and make then attack-move to your Region 001, this will only work if the units the zombies are moving to are Enemies.

  • Zombiezzzzzz
    • Events
      • Your event to trigger the attacking
    • Conditions
    • Actions
      • Set Zombies = (Units in Region 000 <gen>)
      • Set AttackPoint = Region 001<gen>
      • Unit Group - Pick every unit in test and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To AttackPoint
      • Custom Script: call DestroyGroup(udg_Zombies)
      • Custom Script: call RemoveLocation(udg_AttackPoint)
 
Last edited:
Level 3
Joined
Dec 7, 2008
Messages
24
im now here:
unbenanntoz1.png

what to do then?
 
Level 24
Joined
May 9, 2007
Messages
3,563
Click the first part of text. Select Picked Unit (Or whatever that is in german).
Click on the second part of the text. Click the up arrow key once or twice. Attack move should appear.
Click the third part of the text. Select: Variables > AttackPoint.
 
Level 3
Joined
Dec 7, 2008
Messages
24
its look now like this but it dont work?
unbenanntlf9.png


//it tell me when i active it that it wait for 2 names?
 
Last edited:
Level 3
Joined
Jun 6, 2007
Messages
48
What happens that makes your zombies attack?

Also as Hawk said change:

  • Customs
    • Custom Script: call DestroyGroup(udg_Zombies)
    • Custom Script: call RemoveLocation(udg_AttackPoint)
to:

  • New trigger
    • Custom Script: set bj_wantDestroyGroup = true
    • Set AttackPoint = Region 001<gen>
    • Unit Group - Pick every unit in test and do (Actions)
    • Loop - Actions
    • Unit - Order (Picked unit) to Attack-Move To AttackPoint
    • Custom Script: call RemoveLocation(udg_AttackPoint)
 
Level 3
Joined
Jun 6, 2007
Messages
48
You should have:

  • Unit - Order (Picked Unit) to Attack-Move to AttackPoint
At the moment you've set AttackPoint to your region but you haven't told them to attack-move to it you've told them to attack move to another region.
 
Level 3
Joined
Dec 7, 2008
Messages
24
it work now after long misstakes and realy nice and good help from members...
thanks to all for let this work :thumbs_up:
 
Status
Not open for further replies.
Top