Hi, I have a problem with getting player controller of Client in RPC server function.
I know how to get all client player Controller but
when one client runs RPC function of server side, I can’t get a playerController of the client that just ran RPC function on server side in the function.
any way to solve it?
it depends on where it was called from
if it was called from an Actor, you could use:
or a Pawn, you could use:
Thanks for answer.
but it keeps crashing when client tries to get an instigator controller and get player state in RPC Server function.