# Why is my custom C++ actor not replicating correctly even with SetIsReplicated(true) and bReplicates = true? 

**URL:** <https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 23, 2025, 4:04am UTC](https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994 "2025-05-23T04:04:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MindyHarmon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MindyHarmon](https://forums.unrealengine.com/u/MindyHarmon)\
**Post date:** [May 23, 2025, 4:04am UTC](https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994/1 "2025-05-23T04:04:55Z")

</div>

Hi everyone,

I’ve recently started learning C++ in Unreal Engine after spending a lot of time with Blueprints. I’m currently building a simple multiplayer prototype and wanted to create a custom actor entirely in C++ that can replicate its position across the network.

Here’s what I did so far:

- Created a class inheriting from `AActor`
- In the constructor, I called `SetReplicates(true);` and `bReplicates = true;`
- Overrode `GetLifetimeReplicatedProps()` and added my properties using `DOREPLIFETIME()`
- Spawned the actor on the server using `GetWorld()->SpawnActor<>();`

The actor spawns correctly for the host, but **doesn’t appear at all on the client**. I even added `NetMulticast` debug logs to check if replication is triggering — but no luck. The logs only appear on the server.

Some things I’m unsure about:

1. **Do I need to manually call `RegisterAllComponents()` or `ForceNetUpdate()` after spawning the actor in C++?**
2. Are there **differences between how Blueprint Actors and C++ Actors handle replication by default?**
3. Should I be setting any additional replication flags or using `SetReplicateMovement(true)` for positional sync?
4. When exactly should I use `NetMulticast` vs. replicated variables for syncing things like transforms or effects?
5. Could this be an ownership or authority issue? The actor is spawned on the server, but maybe I’m missing something with `SetOwner()`?

I’m trying to stick with good multiplayer practices early on, and I’d love to understand not just how to fix this issue, but how to **think through replication logic properly in C++** for future systems like weapons or projectiles.

Thanks in advance for any help — I know this stuff is tricky, but I’m excited to keep learning and eventually contribute back to the community.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [May 23, 2025, 4:28am UTC](https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994/2 "2025-05-23T04:28:16Z")

</div>

welcome to the forums!

check this out. [Multiplayer Network Compendium | An Unreal Engine Blog by Cedric Neukirchen](https://cedric-neukirchen.net/docs/category/multiplayer-network-compendium)  
check the official docs, they’re really comprehensive [Networking and Multiplayer in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/networking-and-multiplayer-in-unreal-engine?application_version=5.5)

> [@MindyHarmon](#):
>
> but **doesn’t appear at all on the client**.

make sure it’s relevant.  
there’s a flag called AlwaysRelevant or smth.  
read about relevancy also.

> **[Unreal Replication: Update Frequency, Relevancy and Priority](https://www.mattgibson.dev/blog/unreal-replication-settings)**
>
> Replication is the process of synchronizing state between the server and clients to create the illusion that players are all participating in one consistent game world. In Unreal, replication occurs at the level of Actors, and there are three primary...

> [@MindyHarmon](#):
>
> **Do I need to manually call `RegisterAllComponents()` or `ForceNetUpdate()` after spawning the actor in C++?**

no. never call RegisterAllComponents if you don’t know what you’re doing.

> [@MindyHarmon](#):
>
> Are there **differences between how Blueprint Actors and C++ Actors handle replication by default?**

yes. but small details. read the link i’ve shared. mostly you don’t need to worry, except for multicast and overriden methods.

> [@MindyHarmon](#):
>
> When exactly should I use `NetMulticast` vs. replicated variables for syncing things like transforms or effects?

that’s a book in itself. make a thread for that. or read the link i’ve shared (from cedric), it’s explained pretty well.

> [@MindyHarmon](#):
>
> Could this be an ownership or authority issue? The actor is spawned on the server, but maybe I’m missing something with `SetOwner()`?

not necessarily. but it’s important to set the owner.  
only actors that owned by the local player controller, or chains to it, can call an rpc. read the link.

> [@MindyHarmon](#):
>
> I’m trying to stick with good multiplayer practices early on,

“good practices” leads to certain dogmatism. read the link ive gave you.  
the only way is to build a ton, and read a ton, there’s no shortcut, since all projects are different.  
and dumping all that info could be really long.  
you can also search in the forum and the docs here. there’s great content.  
i wouldn’t trust youtube much, lots of ppl there has never done big projects. though some do. you’ll have to select yourself.
