Skip to main content
GameDev.net gamedev.net
🔒 Locked

Replicating actors on one client

Started by pele90 Feb 21, 2019 at 8:53 AM 0 replies 2.5k views
Original Post
pele90
pele90

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.