# Crouch does not replicate before character moves

**URL:** <https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843>\
**Category:** Character & Animation\
**Tags:** Replication, crouch, Server, server-to-client, unreal-engine, crouching, question\
**Created:** [September 30, 2015, 5:39am UTC](https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843 "2015-09-30T05:39:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuppers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zuppers](https://forums.unrealengine.com/u/zuppers)\
**Post date:** [September 30, 2015, 5:39am UTC](https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843/1 "2015-09-30T05:39:49Z")

</div>

Crouch does not appear to be replicating if you press crouch after play begins without first moving the character. Crouch also isn’t working properly if a client joins the game and the server character is already crouched. This causes the simulated proxy to have a full sized capsule component and appear to be sunk into the world. When the simulated proxy moves it bounce up and down as the server appears to be attempting to correct it’s location.

To Duplicate Issue:

1. Start a new 4.9 (4.8 has the same  
issue) Third Person Blueprint.
2. Set number of players to 3 for a  
multiplayer environment.
3. Add three player starts into the  
level.
4. Add a button to the  
ThirdPersonCharacter blueprint that  
activates Crouch.
5. Set the characters capsule component  
hiddenInGame= false.
6. Press play.
7. Do not move the server character,  
simply press the crouch button on  
the server character and then move.

You will notice that the crouch did not replicate to the clients. The same thing happens on the opposite client if you don’t move them first and just press crouch. In fact the Event OnCrouchStart doesn’t fire for the clients, it only fires for the server or client that pressed it.

If you move the character and then press crouch, it works flawlessly. If you crouch, stop crouching and crouch again, then it replicates properly as well. I’ve been sifting through the source code for crouch and saved moves for hours on end and I can’t figure out what is causing this issue. Any help would be greatly appreciate.

Thanks,

Brent

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [October 1, 2015, 5:56pm UTC](https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843/2 "2015-10-01T17:56:32Z")

</div>

Hi zuppers,

Thank you for the report. I believe this issue is directly related to another bug that we have logged as JIRA UE-5968. It is being investigated by the developers and we will post back here with questions or comments as we have them.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![zuppers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zuppers](https://forums.unrealengine.com/u/zuppers)\
**Post date:** [October 1, 2015, 7:17pm UTC](https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843/3 "2015-10-01T19:17:51Z")

</div>

Thank you for the reply! The only bug I could find was located here: “[https://answers.unrealengine.com/questions/136740/playing-animmontage-right-after-iscrouching-is-tru.html](https://answers.unrealengine.com/questions/136740/playing-animmontage-right-after-iscrouching-is-tru.html)” and that seems to be related to anim montage on and older engine version. Is there a different place I can look at this bug to see what issue the other people were reporting? Otherwise the only post I could find doesn’t appear to be related to my issue.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [October 2, 2015, 4:32pm UTC](https://forums.unrealengine.com/t/crouch-does-not-replicate-before-character-moves/333843/4 "2015-10-02T16:32:21Z")

</div>

Yes, that was the original issue that was reported but while testing, the technician found that it was not just the anim montage but setting the capsule through the crouch function seemed to have issues as well. It was separated into 2 issues originally but our devs investigated and merged them into one JIRA report. When this JIRA is fixed, it will very likely fix your issue as well.
