# default player out of bounds behavior (?); can't find information on this

**URL:** <https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 5, 2023, 1:43am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389 "2023-04-05T01:43:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![1sirianth1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Post date:** [April 5, 2023, 1:43am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/1 "2023-04-05T01:43:46Z")

</div>

I’m new(ish) to ue5 and I tend to make very large maps. When a player falls into a lake and/or if a player walks off the map, the game freezes. I use blueprints. How could I change this behavior, e.g., bringing the player back to the origin instead. I can’t find documentation on this problem, for some reason. Maybe I don’t know the right keywords?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [April 5, 2023, 3:32am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/2 "2023-04-05T03:32:31Z")

</div>

You can add blocking volumes to enclose the map.

You could create an Actor class (BP) that has a Box collision. Set the collision setting to Ignore all, Overlap Pawn. Tick “Generate Overlap Events”.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/b/0aba30673b0c8cb7c4135885cfd341471f5d4411.png)

Scroll down and find the events. Click the + for “On Component End Overlap”.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/6/53611894be24948cee85bdcaaae02fc6a9b8b99c.png)

Open the event Graph and find the event. Apply the following.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/4/1048f3c87b7c72774ed085721072d263e3c45145.png)

Place the actor in the center of the map, While selected go to details, click on the collision component. Scale it to fully surround your map. I recommend using the transform (Scale) in the details panel.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/0/2300927fb14a1c66ece031da6c2c7bba6ae61e58.jpeg)

Save and test.

When a PAWN exits the collision (ending overlap) the pawn will be teleported to world location (0,0,0).

---

<div class="post-metadata">

**Author:** ![1sirianth1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Post date:** [April 5, 2023, 3:38pm UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/3 "2023-04-05T15:38:38Z")

</div>

I will probably use this technique, but I’m wondering is there a way to modify the default behavior and/or even gain access or find documentation on the default behavior. Like, I didn’t tell it to pause the game when the player stepped out of bounds, something was set by default, and I’d like to mess with it. Any thoughts?

---

<div class="post-metadata">

**Author:** ![1sirianth1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Post date:** [April 12, 2023, 12:46am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/4 "2023-04-12T00:46:03Z")

</div>

Gonna use this but any thoughts on how to trace down the default behavior?

---

<div class="post-metadata">

**Author:** ![1sirianth1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Post date:** [April 12, 2023, 1:06am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/5 "2023-04-12T01:06:16Z")

</div>

What I was looking for was the killZ volume: [Volumes Reference | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/Basics/Actors/Volumes/#:~:text=The%20purpose%20of%20Kill%20Z,in%20a%20science%2Dfiction%20setting).

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [April 12, 2023, 3:39am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/6 "2023-04-12T03:39:31Z")

</div>

You can use this if the intent is to “Destroy” the actor.

Performance wise you wouldn’t use a KillZ. You’d use another actor/code to move the actor and re-use it.

Destroying actors is costly, that’s why most games “re-use” actors via object pooling, or simple script → teleport, reset, re-possess etc.

---

<div class="post-metadata">

**Author:** ![1sirianth1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1sirianth1](https://forums.unrealengine.com/u/1sirianth1)\
**Post date:** [April 12, 2023, 3:56am UTC](https://forums.unrealengine.com/t/default-player-out-of-bounds-behavior-cant-find-information-on-this/847389/7 "2023-04-12T03:56:08Z")

</div>

I guess what I’m saying is that KillZ was turned on by default, and that’s why the game got stuck when my player went into certain areas. I just made a switch that turns on when they exceed certain bounds that teleports them back to start.
