Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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!

Product Version: Not Selected
more ▼

asked Mar 01 '15 at 02:57 PM in Blueprint Scripting

avatar image

109 10 23 28

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Apr 13 '15 at 12:56 PM

avatar image

66 5 6 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question