How to identify which playercontroller is the active one

Okay, I hope this explanation makes sense…
I have 2 instances running, one as a client and one as a listen server, the player controllers each possess a pawn meaning that I have 4 pawns, 2 on the listen server and 2 on the client. From within the pawn how can I tell if I am the “current” or “active” pawn?
What I mean is how can I tell if my pawn is the one receiving player input locally and not the replicated object on the other listen server or client.

For my own project, I have noticed the active player is always Debug Object 0. PlayerController0 is always the active player on the server and PlayerController1 is the active player on other clients. I wonder if that is the same on your end too.

Use the function on the pawn “Is Locally Controlled”

1 Like