I want to do something on a PlayerController if it’s being run on the owning client. (Send the mouse coordinates to the server)
Is there a way to check if it’s being run by the owner?
I want to do something on a PlayerController if it’s being run on the owning client. (Send the mouse coordinates to the server)
Is there a way to check if it’s being run by the owner?
One way to check if your machine owns the PlayerController is to do a Cast< ULocalPlayer >(PlayerController->Player).
If that returns a valid ULocalPlayer, then that PlayerController is local to (and owned by) that machine.
I would do this if I was working with code but my controller is in blueprint for now. Thanks anyway for the reply.
I found out you can do this in a PlayerController Blueprint with the Is Local Player Controller node.