Advertisement

Replicating actors on one client

Started by February 21, 2019 08:53 AM
0 comments, last by pele90 5 years, 9 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