x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

what is player controller and auto posses?

I have read that player controller is a class which gives input to pawn but it was also written that input facility can also be added directly into pawn class.I have few question 1)so what is the use of player controller? 2) can my game run without any player controller? 3)what is auto posses?( read in forum that only that pawn will move which is auto possessed but i didn't understood the concept) 4)what is default player controller? 5)how many player controller can i have in a level?

I am a noob and recently started learning ue4. so if any of my questions is invalid then sorry for that.please clarify my concept of player controller. thanks

Product Version: UE 4.18
Tags:
more ▼

asked Oct 23 '18 at 02:13 AM in Blueprint Scripting

avatar image

karan3223
11 2 5

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

1 answer: sort voted first

1) If pawn is a body, the PlayerController is a soul of player, it represents player and it sends control calls to the pawn that is currently possessing

2)If you mean without Player Controller object, no... at least without modifying UE4 gameplay framework in UE4 engine. Well you could control pawn with simple key nodes in Level Blueprint and some other classes that accept those, but it's not recommended and player controller will be created anyway

If you mean without Player Controller class then yes you can use standard Player Controller class if this is sufficent.

3)Makes Player Controller automatically possess the pawn on the start, Player Controller also auto possess spawned default pawn if you have one, normally you can manually possess pawn with Possess function/node from Player Controller

4) APlayerController class coded in C++, which you extend with blueprint when you make Player Controller class blueprint

5) Player Controller is made for each player connected, engine creates them automatically on start and if someone connects, in include local players when you call Create Player.

Read about how gameplay framework works in UE4 explaining all those base classes and what they are for here:

https://docs.unrealengine.com/en-us/Gameplay/Framework

more ▼

answered Oct 23 '18 at 02:24 AM

avatar image

Shadowriver
36.6k 930 169 1111

avatar image karan3223 Oct 23 '18 at 02:55 PM

I also have another doubt if player controller is necessary for movement of pawn then how many player controller can i have in the level and if i can have more than one player controller then which of these will receive my input.ex-i have 4 player controller in the level and each of those control their respective pawns and input handling of those pawns are coded in their respective player controller and all input handling keys and logic is same. now when i press any bind key then which will respond to my input.

(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