Region Specification

TheSNGuy

New Member
Reaction score
1
Specifying Units Allowed in Region

Is there a way to prevent a specific unit from entering a specific region?
(while other units can still go there.)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Event:
- A unit enters <some region>
Conditions:
- (Entering unit) equal to <your unit>
Actions:
.... whatever, like moving it elsewhere
 

TheSNGuy

New Member
Reaction score
1
I meant something more like a variable pathing blocker, Something that physically blocks the units from entering.
Having the units continuosly blinking if they keep trying to go through an area would be a major problem with my map for smooth gameplay, it would prob need something more elegant.

Is there any way to edit the pathing AI?
 
B

Blue_Hand

Guest
to make it more elegant
you can create 4 regions and add triggers like this :
Code:
MoveOutsideRight
    Events
        Unit - A unit enters RegionRightSide <gen>
    Conditions
        Your conditions
    Actions
        Unit - Move (Entering unit) instantly to (Point((((X of (Position of (Entering unit))) + 70.00), (Y of (Position of (Entering unit)))))
and create triggers for other sides
(i think my trigger is not leak free)
 

Battle[StFh]

New Member
Reaction score
6
It isn't leak free, you can make it leakfree by doing it like this:
Code:
Actions
    Set Temp_Point = (Point(((X of (Position of (Entering unit))) + 70.00), (Y of (Position of (Entering unit)))))
    Unit - Move (Entering unit) instantly to Temp_Point
    Custom script:   call RemoveLocation (udg_Temp_Point)

:p
 

TheSNGuy

New Member
Reaction score
1
is there anyway to do this so the AI knows to go around it though?

In case you're wondering im trying to make it so my units can fall off the elevator platforms (and not be able to get back on).
A pathing blocker would be perfect if they had one way pathing blockers.
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
I meant something more like a variable pathing blocker, Something that physically blocks the units from entering.
Having the units continuosly blinking if they keep trying to go through an area would be a major problem with my map for smooth gameplay, it would prob need something more elegant.

Is there any way to edit the pathing AI?

Blinking because of repeated moving? Then dont use "move instantly."
Use (condition - entering unit is not equal to player1 (Red)) and then Actions - Unit Order unit to move to...a point on the side of the region so that the pathing can work again (instead of going thru the region.) Maybe make a couple of invisibile unselectable dummy units and place them on the side of the region and tell the units to go to the dummy units, then onward...

This
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top