HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Border in the Map

10-07-2008, 11:21 AM#1
Tot
Can someone sya me how to make a wall, wich can't be crossed by flying units or with blink. But you can visit the other side through a portal (only for heroes!)
10-07-2008, 01:56 PM#2
Kino
You can easily use the "border" function in the terrain editor. Just make it wide enough so people cant blink across.

Doest that solve it?.
10-07-2008, 02:59 PM#3
Blubb-Tec
yes, with a bit of triggering.
Make a trigger that checks if a unit enters the area which you don't want to be accessible.
Then, add a condition which checks if the entering unit is outside the target portal rect, if it is(outside), set it back to some position on the other side of the border.
10-07-2008, 04:17 PM#4
Alevice
pathing blockers work well, too.
10-07-2008, 04:33 PM#5
Blubb-Tec
Quote:
Originally Posted by Alevice
pathing blockers work well, too.
oh yeah, did I forget to mention the epic BLINK PATHING BLOCKERS?
11-23-2008, 08:59 AM#6
xAbysSx
This is easy, use the 'Boundary' tile in terrain editor like they said, but also make two triggers.
These triggers will make the Blinking unit appear back in the location it casted from if it blinks into your restricted region.
Variables: Temp_CasterLoc (Point/no array) & Temp_Caster (Unit/no array)

Saving the location of caster.
Code:
BlinkStart
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Blink
    Actions
        Set Temp_CasterLoc = (Position of (Casting unit))

Moving the caster out of restricted area:
Code:
BlinkMove
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Blink
    Actions
        Set Temp_Caster = (Casting unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((YOUR REGION) contains Temp_Caster) Equal to True
            Then - Actions
                Unit - Move Temp_Caster instantly to Temp_CasterLoc
            Else - Actions
        Custom script:   call RemoveLocation (udg_Temp_CasterLoc)

Hope this helped!
+Rep? (Thanks in advance)
11-25-2008, 12:21 PM#7
Tot
Thx
It helped a lot