# Set max jump count when player enter trigger box

**URL:** <https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, UE4-27, question, Blueprint\
**Created:** [February 25, 2022, 6:43am UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004 "2022-02-25T06:43:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_df3f2181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df3f2181](https://forums.unrealengine.com/u/anonymous_user_df3f2181)\
**Post date:** [February 25, 2022, 6:43am UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/1 "2022-02-25T06:43:59Z")

</div>

![Set max jump ue4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/e/bde6757b1627f680612a5155e8c8bac598fb8cc5.png)  
Im having some issues trying to get this to work. I included a picture of what I have so far. btw this was done in the level blueprint.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2022, 9:10am UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/2 "2022-02-25T09:10:03Z")

</div>

That looks ok, what’s the problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df3f2181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df3f2181](https://forums.unrealengine.com/u/anonymous_user_df3f2181)\
**Post date:** [February 25, 2022, 6:20pm UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/3 "2022-02-25T18:20:25Z")

</div>

For some reason it just doesn’t work. In the third person bp I have the max jump count set to 2. But when ever I try and set it to 1 when the actor begins overlap i can still double jump.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 25, 2022, 6:30pm UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/4 "2022-02-25T18:30:01Z")

</div>

I can hardly see any code, so it’s hard to say. But I would say, always set it to 1 on begin overlap, and only set it back to 2 on end overlap.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df3f2181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df3f2181](https://forums.unrealengine.com/u/anonymous_user_df3f2181)\
**Post date:** [February 25, 2022, 11:56pm UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/5 "2022-02-25T23:56:31Z")

</div>

All the other code doesn’t have anything to do with the player max jump. I tried setting it to the end overlap but still it doesn’t do anything.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 26, 2022, 10:24am UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/6 "2022-02-26T10:24:26Z")

</div>

On tick, print the value of max jump. Then you get to see when it’s changing…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df3f2181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df3f2181](https://forums.unrealengine.com/u/anonymous_user_df3f2181)\
**Post date:** [February 27, 2022, 5:37pm UTC](https://forums.unrealengine.com/t/set-max-jump-count-when-player-enter-trigger-box/502004/7 "2022-02-27T17:37:02Z")

</div>

I Acually figured it out, the cast of the third person character was connected through the overlapped actor, but I tried connecting it to the other actor and it worked!
