Player Controller BP
Hi, i've just started using UE4, and i'm following tutorial and stuff, but i have some questions about Player Controller blueprints.
I've just read this https://answers.unrealengine.com/questions/27660/undefined.html
But i stil don't understand how to control my character from the controller.
I've set up all the controls for movement in the character bp, and now i want to move them to the controller, because (as the creator of the mentioned post wrote) my game will be for the most time an fps, but in some case the player will have to control a car, a little plane, or a turret, so i understood that player controllers enter the scene here, because all of these pawns will have in commons the movement control (if i'm not wrong).
thank you guys in advance!
asked Mar 01 '15 at 02:57 PM in Blueprint Scripting
Just do it the same way you did when your controls were in the Character. The only difference will be on the "Set actor location/rotation/movement" or whatever node you're using to make you pawn move, you need to set the target pin with a "get controlled pawn" so the the movement node will know it has to move the Pawn and not the default target which in this case would be the Player controller...
However if your player is able to use a lot of different kind of pawn, it could be better to only use the player controller to receive the control inputs then send the orders to the pawn which will react differently if it's a car or a character.
answered Apr 13 '15 at 12:56 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here