Where to correctly handle the user input(Pawn or PlayerController)

Hello!

I make some pawn with not standart conctrol. Pawn move on the basis of internal variables. And user can only change some value internal variable, and cant change moving directy.

I see to ways for this:

  1. PlayerController get player input and set Pawn variable
  2. Pawn get player input and set variable

How will be more correctly to doit this?

https://docs-origin.unrealengine.com/latest/INT/Gameplay/Framework/Controller/PlayerController/index.html

“It is possible to handle all input in the Pawn, especially for less complex cases. However, if you have more complex needs, like multiple players on one game client, or the ability to change characters dynamically at runtime, it might be better to handle input in the PlayerController. In this case, the PlayerController decides what to do and then issues commands to the Pawn (e.g. “start crouching”, “jump”).”

It’s a bit of a pity that the projects created from New Project templates handle input in Pawn/Character. Is there a template who handles input in PlayerController?

The top-down example does.