Warcraft III resources & community, 2003–2006 · archived

preventing units to enter a region

16 posts
#1

preventing units to enter a region

how can i make it so a unit is unable to enter a region? i dont mean like they enter it then get sent out, i mean they cant get into the region in the first place.
#2
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
#3
that sounds like it could work, and what i meant is that i wanted to prevent a unit from going in a region, so i think that should help.
#4
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.
#5
uh... try something like "when unit comes into (radius) of (unit in the region) then order entering unit to stop?
#6
Hmm, you could also make a boundary around it once a unit comes close enough... sort of like Fire Prison.
#7
froman77ok 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
#8
Doesn't it only enter once? Then you can move inside the region?
#9
Thats what I want to know. I don't know if the unit gets unmovable when it enters the region. :?

-Rui
#10
no, the unit can enter the region, then it stops, then it can continue where it likes.

also i dont necesarily want a boundary, because i want some units to be able to go into the region but not others.
#11
i dont know if this helps but the unit im trying to prevent from netering the region is a flying unit.
#12
When the specific units, came nearby to this region they will be stoped before they enter the region? its that what u want?
#13
i do not want the units to enter the region at all
#14
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...
#15
okay thanks everyone i think i have a general idea of what im going to do for this now