# Ladder problems

**URL:** <https://forums.unrealengine.com/t/ladder-problems/403609>\
**Category:** Blueprint\
**Tags:** oncomponentbeginover, unreal-engine, Blueprint, question\
**Created:** [September 3, 2017, 10:08am UTC](https://forums.unrealengine.com/t/ladder-problems/403609 "2017-09-03T10:08:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisterPirate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MisterPirate](https://forums.unrealengine.com/u/MisterPirate)\
**Post date:** [September 3, 2017, 10:08am UTC](https://forums.unrealengine.com/t/ladder-problems/403609/1 "2017-09-03T10:08:11Z")

</div>

Hi, I am making a 2d game where the player can place each ladderblock individually. I am using the OnComponentBeginOverlap and the OnComponentEndOverlap to figure out if the ladder is in the player’s range, so the player can climb it, and that works, but when I am leaving one ladderblock, my character stops flying. This is because “climb” is set to false when I am leaving the first block. Are there any ways to fix this?

---

<div class="post-metadata">

**Author:** ![MisterPirate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MisterPirate](https://forums.unrealengine.com/u/MisterPirate)\
**Post date:** [September 3, 2017, 10:09am UTC](https://forums.unrealengine.com/t/ladder-problems/403609/2 "2017-09-03T10:09:47Z")

</div>

![212031-blueprint-screenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/c/cfc31a9a6c0abda8dc1d9344afe40ad127fe0bc3.png)

Here is a screenshot of my Blueprint

---

<div class="post-metadata">

**Author:** ![DanielOrchard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielorchard/32/636987_2.png) [@DanielOrchard](https://forums.unrealengine.com/u/DanielOrchard)\
**Post date:** [September 3, 2017, 10:33am UTC](https://forums.unrealengine.com/t/ladder-problems/403609/3 "2017-09-03T10:33:13Z")

</div>

I have had this problem before as well. What I did was not the best solution but it works. On overlap, cast to player and set a actor variable to self, to show the ladder your inside off, instead of using a bool, do a isValid check to see if your in a ladder. OnComponentEnd, cast to the pawn, and do is Ladder == self, if true, set as null. Basically as you overlap new boxes it changes it so it wont be setting it to false. A better alternative i thought of but never tried, you could make it a ladder actor array. Add to it when you overlap, and remove self when you end overlap. To see if your on a ladder, just see if the array is length \> 0. If you use both begin and end overlap to call a custom event, ie CheckLadderStatus, you can do it without using tick.
