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

How can i make this

Status
Not open for further replies.
Level 1
Joined
May 14, 2008
Messages
5
Ok,this is a last question for today :)

Thing is like this.
I need to make a guard that will attack those how attack units of player blue,but that attack must happen in specific range of a guard. I mean he must see the attack to respond.

I tried few things but they dont work.. Can u give me your ideas??
 
Level 12
Joined
Mar 16, 2006
Messages
992
Here's how you do it:

You use the SEARCH button and find the page where I already helped someone with this exact problem within the last week.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
  • Events
    • Unit - a Unit is attacked
  • Conditions
    • Triggering Unit is within 600 of <guard>
    • owner of Triggering Unit equal to player 2
  • Actions
    • Unit - issue order <guard> to attack <attacking unit>
i did it from memory so some things might sound a little different in WE, but you should be able to get it
 
Level 1
Joined
May 14, 2008
Messages
5
Hm..Well , im not very sure how does variables work.. I mean i never tried to use them , so im not very sure how does it work.. Il be very grateful if you give me some example how does varibles work :)
 
Level 6
Joined
May 3, 2006
Messages
81
Variables are really really easy once you understand them, I never touched em for a while when I first started editor and now they make perfect sense. It's basically saving something so you can use it in other triggers easier. Like setting a unit as a variable and then in another trigger killing it.
 
Status
Not open for further replies.
Top