# Adding crouching to state machine from 3rd Person UE Course Stackbot

**URL:** <https://forums.unrealengine.com/t/adding-crouching-to-state-machine-from-3rd-person-ue-course-stackbot/766548>\
**Category:** Blueprint\
**Tags:** crouch, unreal-engine\
**Created:** [February 8, 2023, 4:53pm UTC](https://forums.unrealengine.com/t/adding-crouching-to-state-machine-from-3rd-person-ue-course-stackbot/766548 "2023-02-08T16:53:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImKim](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/imkim/32/619479_2.png) [@ImKim](https://forums.unrealengine.com/u/ImKim)\
**Post date:** [February 8, 2023, 4:53pm UTC](https://forums.unrealengine.com/t/adding-crouching-to-state-machine-from-3rd-person-ue-course-stackbot/766548/1 "2023-02-08T16:53:33Z")

</div>

I have made my own project using severl animations/assets from the UE Marketplace, and am currently trying to add a crouch animation to go alongside the walk/jog/sprint animations that I have configured.

Currently, I have the following setup.

 ![State Machine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/c/23cbd983557899540a72919162249cacb03001b7.png)

 ![AnimGraph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/8/c8813b05fbd0c3a93b011b6a0c2395b10e2df316.png)

I have a one directional BlendSpace for Idle to Sprinting, and another for Crouching idle to walk. Currently the Idle\_Sprint BlendSpace is set to the cached pose that GroundLoco references in the state machine. I have a couple of variables set up in my code for “IsCrouching” so it can be used, if necessary.

The only thing is, I can’t figure out the best way to do this, while retaining my air locomation state machine. Any ideas?

_EDIT_: I created a cached pose in the AnimGraph, similar to the cached pose for Idle-Run from the tutorial. I then referenced that cached pose in the State machine, and set up a variable similar to the “IsFalling” variable and how it is set to true/false, then referenced that for the transition between GroundLoco and the Crouch State.
