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:
- Start a new 4.9 (4.8 has the same
issue) Third Person Blueprint. - Set number of players to 3 for a
multiplayer environment. - Add three player starts into the
level. - Add a button to the
ThirdPersonCharacter blueprint that
activates Crouch. - Set the characters capsule component
hiddenInGame= false. - Press play.
- 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