How do I set up input inside the PlayerController instead of the character?
I want to handle input inside a custom player controller class instead of my character's class. Do I have to cast? If yes the how? I tried searching everywhere but for some reason nothing helped.
asked Nov 07 '17 at 07:07 PM in C++ Programming
Inside your CustomCharacterController.h file, you need something like this:
Then, in your cpp file:
Then, just make sure the game's spawning your custom character controller for the player and not the default controller. That's usually set in the GameMode you're running.
answered Nov 07 '17 at 11:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here