Switch_has_authority vs isServer

is there ever a time that “switch has authority” is different than a branch connected to “isServer”? How are these different?

128035-capture.png

Yes there is!

Authority is a separate function. You can also get a “HasAutority” boolean like the “IsServer”.

And Authority has whoever spawned the actor. A client can’t replicate entire actors to the server. However they can still spawn their own. If you do spawn something in client. The client has authority over it.

The server (if it’s setup that way in the replication settings) will automatically replicate actors to all clients. In this scenario the server has authority and the client is remote.

So. Basically. The server should have authority most of the time. But not quite always. Though it is reasonably predictable to work with.

1 Like