I find it very frustrating that the replication condition block is unable to consider which client we’re replicating for when deciding if variables should be replicated.
Example: I’m implementing a overhead interactive map. I want to replicate the location of all players that are on the same team as client I’m replicating to.
We essentially have to set the same flat rules for all clients (even if they’re not on the same team, or they are very far from the player).
What I want to be able to do is something like this:
replication
{
if (bNetDirty && WithinRangeFromClient(10000))
Location, Rotation;
}
But as far as I can tell there is no way to access a reference to the player I’m replicating to in the replication block.
Any ideas if there is a way?