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

Unit comes Within

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Hey im trying to do a trigger where if u come within 400 of a creep it moves both u and a creep to an arena, but i cant figure out how to do that.
 
Level 4
Joined
Apr 14, 2009
Messages
118
You could use the unit collision type like in mazes:
In the Events you will find
Unit- unit within range ---Then you set it something like this:

Unit - A unit comes within 50.00 of Demon Hunter 0012 <gen>

50 is how far away, you should test this before you really do anything else
When it asks you to pick a unit, just click on your unit that you control.

Then for actions:

Unit - Issue order targeting a point ---it will look like this:

Unit - Order Demon Hunter 0012 <gen> to Move To (Center of Region 000 <gen>)
(THIS WILL MAKE THE UNIT WALK TO POINT)
If you want them moved instantly:

Unit - Move unit instantly ---will look like this:

Unit - Move Demon Hunter 0012 <gen> instantly to (Center of Region 000 <gen>)

For these, of course you will have to do 2 seperate actions for the 2 beings going to the arena.

Hope that helps, let me know if you need help with it.
 
Status
Not open for further replies.
Top