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

make a creep ignore the attackers?

Status
Not open for further replies.
Level 6
Joined
Jul 26, 2010
Messages
167
well when I send a creep to attack a building I need it to ONLY attack the building. The problem is that if some random unit attack that creep it distract and go to attack him :/. Theres a trigger to make it ignore attackers?
 
Level 9
Joined
Nov 19, 2011
Messages
516
Combat{
Targets{
Ground, Structure
}
}

In unit edit


========OR========


[trigger="MyTrigger"]
Events
Unit - A unit is target of attack
Conditions
Unit Type of (attacked unit) not equal to structure
Unit Type of (attacking unit) equal to your unit
Actions
Unit Group - Pick every (structure) in (range of (200) around (attacked unit) and do (Actions)
Unit - Issue (attack) order targeting a (Picked unit)
[/trigger]
 
Last edited:
Status
Not open for further replies.
Top