# How to replicate Character Movement Component

**URL:** <https://forums.unrealengine.com/t/how-to-replicate-character-movement-component/2609759>\
**Category:** Blueprint\
**Tags:** Replication, unreal-engine, Multiplayer, question\
**Created:** [July 18, 2025, 5:04pm UTC](https://forums.unrealengine.com/t/how-to-replicate-character-movement-component/2609759 "2025-07-18T17:04:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![9Evgeny9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Post date:** [July 18, 2025, 5:04pm UTC](https://forums.unrealengine.com/t/how-to-replicate-character-movement-component/2609759/1 "2025-07-18T17:04:14Z")

</div>

I have a character. All movements replicates to server.  
But when i try change “Set Movement mode” from Walking to Flying, it’s not replicates. Character stays on Walking mode.

This screen from **BP\_PlayerCharacter**

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/0/9a024093cb66f8285d3ee4321fcf5b702614ba8e.png)

Checkbox in character movement component is on.

 ![{CC3133B9-1D7A-4512-B9AB-E956BD2BACF6}](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/4/ed438362054c484824e1dddfae41334d2d8fed72.png)

So, the situation is following.  
Player1 on Host-Server can switch Movement modes,  
Player2 on Client can’t switch Movement modes.

How to fix it?

---

<div class="post-metadata">

**Author:** ![youngdeveleopersclub](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/youngdeveleopersclub/32/1032984_2.png) [@youngdeveleopersclub](https://forums.unrealengine.com/u/youngdeveleopersclub)\
**Post date:** [July 19, 2025, 2:24pm UTC](https://forums.unrealengine.com/t/how-to-replicate-character-movement-component/2609759/2 "2025-07-19T14:24:42Z")

</div>

Hi  
Everything works fine for the **host** , but not for the **client** , because in Unreal Engine the host is both the **server** and a **client** at the same time. So when the host changes the movement mode, it’s directly done on the server, and it works.

But a **client** is a separate machine that doesn’t have the authority to directly modify server-side logic. So when the client tries to change the movement mode, the server doesn’t know about it — and nothing happens.

To fix this, you need to make sure that the **client sends a request to the server** , and the **server handles the actual change** of movement mode.

Here’s what to do:

1. Create a **Custom Event** in your `BP_PlayerCharacter` that is set to **Run on Server**.

- In the event settings, enable **Replicates → Run on Server**.
- For example, name it `SetFlyMode_Server`.

1. Inside `SetFlyMode_Server`, implement the logic that sets the movement mode (e.g., `Set Movement Mode` to `Flying`).
2. If you already have an event like `SetFlyMode` that is being called on the client (e.g., on key press), you should modify it to **call `SetFlyMode_Server` instead**.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/2/00210ca122efe0eb08d3f7c05800ddb9755a38a1.png)

> ⚠ Important: The server should **not call** the client to change movement. Instead, the client must **ask** the server to make the change. That’s likely where the problem in your current setup is.

* * *

Additionally, I noticed you’re using the `Get Player Pawn` node with **Player Index = 0**. This can cause issues in multiplayer. Each client has a different index, and index 0 usually refers to the server/host. So when multiple players are connected, this reference may not work as expected.

### Recommended approach:

- Use `PlayerState` to get the `Controlled Pawn`.
- Then cast it to your character class.
- From there, access `Character Movement` and perform your logic.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/b/e9b17f844af5a95e3acbe48e75bdd74fa2f2f25f.png)

This method avoids index-related issues and makes your system more stable in a multiplayer environment.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [July 19, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-replicate-character-movement-component/2609759/3 "2025-07-19T17:14:34Z")

</div>

@9Evgeny9 You need to read the Character Movement Component (CMC) Docs.

**It doesn’t matter if you understand it completely now, just that you read it top to bottom.** Understanding will come over time. Experience is earned through practice.

> **[Understanding Networked Movement in the Character Movement Component for...](https://dev.epicgames.com/documentation/en-us/unreal-engine/understanding-networked-movement-in-the-character-movement-component-for-unreal-engine)**
>
> Detailed explanation of how the Character Movement Component handles networked movement

* * *

The short of it is CMC uses **Client-Side Prediction**.

CSP requires the client (Autonomous Proxy) to apply changes directly to the client, THEN have the server TRY to make the same changes. If the server says no, then it tells the client to correct.

Client is the “Local Authority”, but the Server is the “Global Authority”.

This is how over 90% of CMC works. Movement Input, Camera Input, Speed changes, Jump, Crouch etc. All added functionality should follow the same flow rules.

Client: Can I do this Action? If True, Apply the change. Tell the server to try.  
Server: Can I do this Action? If True, Apply the change.

CMC’s server correction only applies to MOVEMENT. Note that not all of CMC variables are replicated. You will have to create your own methods to apply server correction to custom logic outside of the generic movement the component provides.

* * *

**You do not EVER** modify a class from another class. All code to make changes to a class must be coded in the owning class and be Applied by that class.

_e.g. Have Player State, Player Controller set CMC movement mode._

* * *

**How to Properly apply Movement Mode Change.**

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/d/24d62fe1068f01856ef70ceedeee2aaab27baafb.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/3/253b4f582d3260255aa03e35a97ed1e980c33acb.png)

* * *

edit… FYI, Character Movement Component does not replicate. It doesn’t need to. All replication is handled in C++ RPC’s for the most part.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/a/dda716bb39cdfd20da026a7d4f173cc77636e33f.png)
