# Smooth Crouching in Multiplayer

**URL:** <https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494>\
**Category:** Cinematics & Media\
**Tags:** crouch, smooth, unreal-engine, Multiplayer, question\
**Created:** [January 9, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494 "2015-01-09T19:03:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [January 9, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/1 "2015-01-09T19:03:44Z")

</div>

I was following the steps that TJ Ballard posted in another answer to make smooth crouching and it works perfectly. Now I’m trying to convert this BP to make it work in multiplayer. The crouching mechanic works fine for the server and client (both can duck under an obstacle and are blocked when trying to get up beneath it). But as soon as a client goes into crouch mode, the camera starts stuttering up and down heavily instead of going down smoothly. I’ve already tried several attempts to fix it, but I’m stumped. I would be so glad if anyone could take a look at this.

Here is my (slightly changed) BP:

 ![26134-crouchmultiplayer.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/b/14b9a1fd04d41dbb8b06d6e8339d7c2d7c5605ae.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9026aeba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9026aeba](https://forums.unrealengine.com/u/anonymous_user_9026aeba)\
**Post date:** [January 21, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/2 "2016-01-21T17:05:33Z")

</div>

Any luck with this?

---

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [February 13, 2016, 11:43am UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/3 "2016-02-13T11:43:12Z")

</div>

I’ve found a solution, but it has nothing to do with what I initially posted here.

It’s much easier - just crouch the player as you would in single player (I do it by setting capsule half height and walk speed) and then start a multicast event that sends this to every client that isn’t controlled locally (do this with a branch, press right click anywhere and type “is controlled locally” and connect them).

The camera automatically adjusts itself smoothly when the capsule changes height, so this is how I do a smooth crouching in multiplayer.

---

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [February 13, 2016, 11:44am UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/4 "2016-02-13T11:44:02Z")

</div>

![78437-crouchcamera.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/d/8fd7d544fadc51288b6556f366d791ee5b8d897f.jpeg)

Actually there is a timeline that smoothes the camera movement (good thing I double checked) and this is how it looks. This extra function is not necessary, but it adds a little extra smoothness. Just add it in the client event after changing the capsule height (don’t multicast it) and it should look fine!

The Camera Location variable is set at the beginning of the game, you can just grab the current camera position or type a location of your desire in this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9026aeba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9026aeba](https://forums.unrealengine.com/u/anonymous_user_9026aeba)\
**Post date:** [February 17, 2016, 12:50am UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/5 "2016-02-17T00:50:19Z")

</div>

So evidently your camera isn’t tied to your pawn’s mesh location. Your suggestion is what I had been thinking of doing, but I don’t have direct control over the camera like you do, but thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Blue669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Post date:** [February 17, 2016, 8:10am UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/6 "2016-02-17T08:10:31Z")

</div>

While it’s not tied to any mesh, it is still part of the player character and tied to the capsule collision.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_edbf1837](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_edbf1837](https://forums.unrealengine.com/u/anonymous_user_edbf1837)\
**Post date:** [February 16, 2022, 6:41pm UTC](https://forums.unrealengine.com/t/smooth-crouching-in-multiplayer/303494/7 "2022-02-16T18:41:36Z")

</div>

Hey! This is exactly what I need for my game, but it seems the images no longer exist. Could you reupload them? I really want my crouch to feel smoother in my FPS game. Thanks in advance!
