Ownership

Replication of an Actor implies that there is an original Actor that exists on one player’s machine. This Actor is called the owner of all its replicated Actors.

As replicated Actors are just instances of the replicated Actor type, they are no different than the original. However, it is sometimes useful to distinguish between an owner and a replica Actor, as the owner should be the authority. For example, a message to all players to perform a particular action on all player Actors would affect each player several times as each player Actor is, of course, replicated across all clients. This can be prevented by only performing the action on the owning Actor.

Checking Ownership and Replication

To check if a particular Actor is the owner, and/or if the Actor is currently replicating, the Strix Replicator Component provides some functions:

Get Is Owner

Returns true if the Replicator Component is attached to the owner Actor.

Get Is Replicating

Returns true if the Actor this Replicator Component is attached to has a replica.

Get Is Owner And Replicating

Returns true if the Actor this Replicator Component is attached to has a replica, and this Actor is the owner Actor.