#How to block movement and abilities out of a regio

1 messages · Page 1 of 1 (latest)

hollow delta
#

I have a map in my custom have that contains 2 arenas side by side (image shown)
I want to block players from moving out of the arena (like blinking out, rolling out, tping out (furion), etc).
I've tried triggers around it to detect when a hero "touches" it but it simply doesn't do the same. I am running out of ideas

Anyone has an idea of how to implement something like an invisible barrier what disables heroes from blinking or rolling OUT of it, while allowing rolling and blinking inside of the arena?

thick kettle
#

checking their positions every tick
if hero is out of region
set them back

thick kettle
#

you can put a trigger fill the region and check IsTouching every tick

hollow delta
#

I created a trigger multiple connected to a region that encapsulates my arena (image1)

Then I gave it a script (image2)

And then I made a script to just print when a hero leaves it for now (image3)

And tried to attach it to the output of the trigger (image4)

I can see the print "Arena Trigger Script Loaded Successfully!", which means my lua script connected to the trigger (i think), but I can't see the print of it triggering the OnEndTouch. The "RunScriptCode" at "Via This input" is always red, and the symbol of outputs is also crossed red. Am I missing something here?

buoyant iron
#

Most likely you need also set "target entities named" to arena1_trigger (your trigger)

#

Red text means you configured something wrong and it will 100% not work