Download

Input management for networking: PlayerPawn or PlayerController

In official tutorials, input handling happens in the player pawn:

The answer here summarizes, why it is better to use player controller for managing input

Now my question: When having networking in mind, is it better to rely on player pawn or the player controller for input (the server representation of each should not handle input, shouldn’t it?). And if I should prefer one over the other, why I should do that?

Setup input in the pawn. Pawns might handle input differently. Hard to make that work if you route everything via a player controller.

If there are persistent inputs, like typing into chat or showing a scoreboard, put those in the player controller.