# Reset JumpCurrentCount to allow refreshing of double jump on wallrun?

**URL:** <https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 18, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469 "2025-04-18T17:54:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![treeese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@treeese](https://forums.unrealengine.com/u/treeese)\
**Post date:** [April 18, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/1 "2025-04-18T17:54:53Z")

</div>

Hello! As the title implies I have a game with both a wallrun mechanic and a double jump, and I want the wall run mechanic to refresh the player’s double jump. I was hoping to do this with the built-in jump max count and jump current count variables since they play into the character blueprint’s ihernent jumping code, but I find that I cannot manually reset the JumpCurrentCount variable in blueprint, I even opened the character.h file and it says that it’s blueprint readonly. Is there a workaround for this and if not, would it be safe to edit the cpp files and make it editable in blueprint?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [April 18, 2025, 7:13pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/2 "2025-04-18T19:13:25Z")

</div>

Hey @treeese!

You can handle jumping yourself like this 😊

 ![Screenshot 2025-04-18 221312](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/3/9b3a62680248d2177d2dd1ddc859bd23c07ab674.png)

This way you can reset the jump count whenever you like!

_(The_ `Max Jump Count` _property should still be set to a value above 1 though)_

* * *

You can also do this:

 ![Screenshot 2025-04-18 221720](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/d/4bd080fabdccbed0c7ee7d69b03fb9052189c0fe.png)

To be able to dynamically assign the jump velocity from the blueprints like this:

![Screenshot 2025-04-18 221354](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/1/0315671d32adefb217f25b8e0e308e5fad0d9f5b.png)

Hope these help! 😇

---

<div class="post-metadata">

**Author:** ![Sitiana](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sitiana/32/1194605_2.png) [@Sitiana](https://forums.unrealengine.com/u/Sitiana)\
**Post date:** [April 18, 2025, 7:16pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/3 "2025-04-18T19:16:48Z")

</div>

Hi, can you try just calling `StopJumping` when player is starting wallrun? I haven’t tested it myself, but as I can see the Character.cpp code, `StopJumping` calls `ResetJumpState` which sets `JumpCurrentCount` to 0, so hopefully it will do the job.

Regarding your question about changing cpp code, usually something is only readable for a reason. And even if it’s fine to adjust, still to make this change work you would need to download UE source, modify it there and recompile everything. Quite problematic just to change one variable.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [April 18, 2025, 7:26pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/4 "2025-04-18T19:26:00Z")

</div>

> [@Sitiana](#):
>
> Hi, can you try just calling `StopJumping` when player is starting wallrun? I haven’t tested it myself, but as I can see the Character.cpp code, `StopJumping` calls `ResetJumpState` which sets `JumpCurrentCount` to 0, so hopefully it will do the job.

To this day I still don’t know what that node does 🤣 🤣 Didn’t even work for that purpose!

---

<div class="post-metadata">

**Author:** ![treeese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@treeese](https://forums.unrealengine.com/u/treeese)\
**Post date:** [April 25, 2025, 3:31pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/5 "2025-04-25T15:31:32Z")

</div>

So I figured it out!

Basically I have my max jump count set to 2 by default, and whenever I initiate a wallrun it gets increased by one, however it is clamped so that it can only greater than the current jump count by 1, as otherwise you could farm essentially infinite double jumps by reattaching to walls without double jumping. When jumping off of a wall I use my own code so a jump isn’t used. Landing resets the max jump count to 2.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/f/a9f5fc4037fbec094588c3f1af026dce2cfb25f9.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/7/b27f54e270f30969d0427d58124daac367487c62.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 25, 2025, 3:32pm UTC](https://forums.unrealengine.com/t/reset-jumpcurrentcount-to-allow-refreshing-of-double-jump-on-wallrun/2463469/6 "2025-05-25T15:32:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
