• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can i make this

Status
Not open for further replies.

Iqsion

I

Iqsion

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??
 
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.
 
  • 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
 
Hm..I think i tried that but im not sure. Il try it to see if it works
 
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 :)
 
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.
Back
Top