# Change jump force in code

**URL:** <https://forums.unrealengine.com/t/change-jump-force-in-code/356780>\
**Category:** Character & Animation\
**Tags:** gamemode, unreal-engine, question, CPP\
**Created:** [May 7, 2016, 10:59pm UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780 "2016-05-07T22:59:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajsmith595](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ajsmith595](https://forums.unrealengine.com/u/ajsmith595)\
**Post date:** [May 7, 2016, 10:59pm UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/1 "2016-05-07T22:59:01Z")

</div>

I created my own custom Game Mode and Character using this tutorial: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial)  
And I wanted a way of changing the jump force/height in c++ code.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Bedoya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduardo\_Bedoya](https://forums.unrealengine.com/u/Eduardo_Bedoya)\
**Post date:** [May 7, 2016, 11:57pm UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/2 "2016-05-07T23:57:56Z")

</div>

Play with the GetCharacterMovement()-\>Velocity.Z variable. Is just an idea, i havent done it  
that yet

---

<div class="post-metadata">

**Author:** ![Eduardo\_Bedoya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduardo\_Bedoya](https://forums.unrealengine.com/u/Eduardo_Bedoya)\
**Post date:** [May 7, 2016, 11:59pm UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/3 "2016-05-07T23:59:56Z")

</div>

Play with the GetCharactetMovement()-\>Velocity.Z variable and see what happens

---

<div class="post-metadata">

**Author:** ![Eduardo\_Bedoya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduardo\_Bedoya](https://forums.unrealengine.com/u/Eduardo_Bedoya)\
**Post date:** [May 8, 2016, 12:00am UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/4 "2016-05-08T00:00:11Z")

</div>

Play with the GetCharactetMovement()-\>Velocity.Z variable and see what happens

---

<div class="post-metadata">

**Author:** ![Etra\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Etra\_Games](https://forums.unrealengine.com/u/Etra_Games)\
**Post date:** [May 8, 2016, 6:40am UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/5 "2016-05-08T06:40:08Z")

</div>

OR you could go to the character movement component and adjust jump height

---

<div class="post-metadata">

**Author:** ![Etra\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Etra\_Games](https://forums.unrealengine.com/u/Etra_Games)\
**Post date:** [May 8, 2016, 6:40am UTC](https://forums.unrealengine.com/t/change-jump-force-in-code/356780/6 "2016-05-08T06:40:18Z")

</div>

OR you could go to the character movement component and adjust jump height
