# Character can sprint while crouched

**URL:** <https://forums.unrealengine.com/t/character-can-sprint-while-crouched/491406>\
**Category:** Blueprint\
**Tags:** sprint, walk, crouch, unreal-engine, question\
**Created:** [November 28, 2021, 12:01pm UTC](https://forums.unrealengine.com/t/character-can-sprint-while-crouched/491406 "2021-11-28T12:01:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![D.O.R.I.N](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.O.R.I.N](https://forums.unrealengine.com/u/D.O.R.I.N)\
**Post date:** [November 28, 2021, 12:01pm UTC](https://forums.unrealengine.com/t/character-can-sprint-while-crouched/491406/1 "2021-11-28T12:01:36Z")

</div>

hello to all friends, I’m new to this field, I have a problem how to make it so that when pressing CTRL, the character can’t run, only walk.

for example, I have 300 walks, I run at a speed of 600, press Ctrl and go at a speed of 150, and at the moment I press Ctrl and Shift, I run at a speed of 600,

how to do this in order to press ctrl in time so as not to run. and also walk at a speed of 150 or a little faster  
alt text

 ![353200-2021-11-28-13-57-41.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/5/ca572c7049a6f6dc03706344f49085e4738d237b.png)

 ![353211-2021-11-28-13-58-04.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/0/fc09cb3b8947257749e29a7b8b46586fa47439cc.png)

---

<div class="post-metadata">

**Author:** ![cnkahyaoglu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cnkahyaoglu](https://forums.unrealengine.com/u/cnkahyaoglu)\
**Post date:** [November 28, 2021, 3:32pm UTC](https://forums.unrealengine.com/t/character-can-sprint-while-crouched/491406/2 "2021-11-28T15:32:41Z")

</div>

I don’t know if i understand it correctly but you can use a branch on left shift input that checks if ctrl is pressed.  
Also why do you use the event tick? You can put the Stand Up node to the “crouch released”.

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [December 7, 2021, 2:30pm UTC](https://forums.unrealengine.com/t/character-can-sprint-while-crouched/491406/3 "2021-12-07T14:30:05Z")

</div>

There’s a function to crouch inside character default code and your CharacterMovementComponent has a MaxWalkSpeedCrouched variable to handle the speed.

To do this, you needs to enable bCanCrouch variable inside your movement component.

Or you can add a branch node before set max walk speed (Left Shift func) to verify if is crouching
