🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Replicating actors on one client

Started by
0 comments, last by pele90 5 years, 4 months ago

Hi guys,

what are options regarding replicating actors to only one one client in Unreal Engine 4.

For example, let's say we have a dedicated server and two clients. One client has objective to kill some actor. That actor is spawned on server and should be only visible and interactable to the client with the objective. 

The first way that i know of, is to set bOnlyReleventToOwner flag to true and set actor's owner to PlayerController.

Another way is to override IsNetRelevantFor method in replicated Actor and use some flag to tell for which client we want to replicate actor.

Any other options??

I hope you can understand my question. xD

Thanks in advanced.

This topic is closed to new replies.

Advertisement