Conditional replication?

Hi.
Is there any way to replicate actors/variables with a condition? Like replicate something only to players of team1 or team2?

I don’t think you can do that at the variable level (it’s not that specific.) You could do it at the actor level, though. Perhaps create a teaminfo actor and override

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/IsNetRelevantFor/2/index.html

or

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/IsNetRelevantFor/1/index.html

1 Like

Updated doc link: AActor::IsNetRelevantFor | Unreal Engine Documentation