# Smooth Crouching With Existing Blueprint

**URL:** <https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309>\
**Category:** Blueprint\
**Tags:** unreal-engine, crouching, UE4, Blueprint, question\
**Created:** [June 19, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309 "2016-06-19T13:06:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 19, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/1 "2016-06-19T13:06:25Z")

</div>

So I have a basic blueprint for crouching, it works well and does what I want (you can’t sprint while crouching but you can fire, you can’t jump either).

My gripe is that it’s instant, meaning there’s no smooth transition from standing up to crouching state, it just goes straight to the crouching, I’d like to tweak the current blueprint I have so I can get it to be smoother, what should I do?

Thanks by the way, here’s a screen of the current blueprint I have:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/6/a868f3df16da38d781f3e7afa53efbaf2e86b8d9.png)

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [June 19, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/2 "2016-06-19T19:24:29Z")

</div>

Here is a solution using a Timeline :

 ![95155-test150.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/30387e13e4376307e3c43c0a9064f413f8a55c7d.png)

 ![95156-test151.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/1/7e1110dd02de612779cd2e74bd9be5fdfa0315f2.png)

 ![95157-test152.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/628ccfa0b68a41462867a54ddd138876490fe177.png)

 ![95158-test153.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/2/e4221f8985dc7184b81d4078ddfeff2e2a24a657.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 19, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/3 "2016-06-19T20:03:13Z")

</div>

Thanks for this, it seems very detailed and professional, I just have a couple of questions:

1 - How do I get the Crouch and Un Crouch events?

2 - How do I get the “custom event” variation of these?

I managed to do the timeline as you listed there, just need to know the answer to the above so I can finish what you presented me with, thanks by the way.

---

<div class="post-metadata">

**Author:** ![BadgesOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BadgesOW](https://forums.unrealengine.com/u/BadgesOW)\
**Post date:** [June 19, 2016, 8:13pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/4 "2016-06-19T20:13:15Z")

</div>

From what I can tell from the images you can make the events by right clicking and typing “add custom event”. Just type in the name and you will be able to place the blue version of it which triggers the custom event made.

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [June 19, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/5 "2016-06-19T20:33:13Z")

</div>

Check out this

> **[Custom Events](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/Custom/)**
>
> Custom user-created events that can be fired off from within a Graph.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 19, 2016, 8:43pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/6 "2016-06-19T20:43:54Z")

</div>

Alright I managed to call the events, how do I get to set the “Is Crouching” and the “Crouch Maintains Base Location” though?

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [June 19, 2016, 9:50pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/7 "2016-06-19T21:50:50Z")

</div>

Is Crouching : by creating a new boolean variable

Crouch Maintains Base Location : you set it from you character movement component

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 20, 2016, 3:35pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/8 "2016-06-20T15:35:26Z")

</div>

Worked wonders, almost finishing now but I can’t get the SetRelativeLocation to break down to New Location X, Y and Z, how do I do that?

This is part of my graph for now: [http://i.imgur.com/F3vccJn.png](http://i.imgur.com/F3vccJn.png)

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [June 20, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/9 "2016-06-20T17:05:07Z")

</div>

there are 2 ways :

- Drag a wire from yellow pin and “Make Vector”

- Right click on yellow pin and “Split struct”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 20, 2016, 6:28pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/10 "2016-06-20T18:28:37Z")

</div>

Alright now I got everything equal to yours, there are some issues though:

1 - When I crouch, I can’t get back up, I always stay crouched.

2 - I can sprint and jump while crouched and I wouldn’t like for that to be available to do.

Thanks by the way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cecfd49f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cecfd49f](https://forums.unrealengine.com/u/anonymous_user_cecfd49f)\
**Post date:** [June 22, 2016, 8:29pm UTC](https://forums.unrealengine.com/t/smooth-crouching-with-existing-blueprint/361309/11 "2016-06-22T20:29:21Z")

</div>

Don’t want to bother but do you think you know what happened? Because with everything you gave me I can’t un crouch, I always stay crouched.
