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

A question

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
Make a rect in the shape of a wall and make a trigger like this:

Events:
Unit enters 'Rect'
Conditions:
Owner of entering unit = Neutral Hostile (Player Comparison)
Actions:
Move unit instantly to (Point with Offset) Position of entering unit offset by ..., ... (x, y)

If they come from above: 0, 75
If they come from beneath: 0, -75
If they come from the right: 75, 0
If they come from the left: -75, 0
 
Status
Not open for further replies.
Top