Hi, everyone.
I’m kinda trying to dig in into UE4 networking and I came across the SwitchHasAuthority node which is supposed to tell you whether you are a client or a server. I quickly made a simple test inside the Character Blueprint:
My InputActionCast is bound to Left Mouse. So, when I pressed Left Mouse inside the server instance, I got the message “Server: SERVER” popping up on BOTH server and client instances. Doing the same but from client instance got me “Client: CLIENT” appearing on both client and server instances.
What I really expected to happen was the message “Server: SERVER” to appear ONLY on server instance and “Client: CLIENT” only on client instance. Am I missing something here?
I did multiple networking things but the print string after switch has authority confuses me as well. I asume that print string always gets printed on both, server and client. and the string “Server” or “Client” infront of the message indicates on which machine it’s running. I would rather test this with spawning an actor that is not replicated.