Jump to content
  • Advertisement
pele90

Unreal Replicating actors on one client

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!