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

preventing units to enter a region

Status
Not open for further replies.

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
In the first place? What do you mean? Be more specific. Maybe you are asking for this.

Events:
Unit-Generetic Unit Event: A unit enters Region

Conditions:
(No need)

Actions:
Unit- Issue Order with no target: Order Entering Unit to Stop


Hope this helps :wink:

-Rui
 
Level 10
Joined
Jul 2, 2004
Messages
690
uh... try something like "when unit comes into (radius) of (unit in the region) then order entering unit to stop?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
froman77 said:
ok n/m it didn't work. what i want is so that when a unit comes into a region is just wont be able to enter it, and it will stop.

Thats why I wrote that trigger, but why it doesn't work? When the unit enters the region it cant come out?
If that is the problem make another region around the initial region that you don't want unit(s) to enter, and use same trigger. The second region has to be just a bit larger.

Events:
Unit-Generetic Unit Event: A unit enters Region 2

Conditions:
(No need)

Actions:
Unit- Issue Order with no target: Order Entering Unit to Stop

The rest is optional but...
Trigger: Turn off (this trigger)
Wait: Wait 0.5
Trigger: Turn on (this trigger)


You should tell me whats wrong with my first suggestion, so that i try to fix it.

-Rui
 
make another region around that region then and say "if unit enters region1 order unit to go to random point in region2"

so its like you have the region where they shouldent enter and another region around it thats the stoper and then one more region that you send the unit too if it enters the stoper region around the one the unit musent enter.

hope this can help...
 
Status
Not open for further replies.
Top