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. 

Calling "CreatePlayer()" twice but getting three players in game


I've been following the tutorial at https://www.youtube.com/watch?v=ZOc9fV6Sap4&t=495s. It's a great tutorial but I'm confused about one thing. In the tutorial he creates a four player split screen, I want to create a two player split screen game. Therefore, instead of calling create player four times I only call it twice as in the picture below. This splits the screen three times however and GetNumPlayers() returns 3. And only two of the screens/controllers work as intended. If I spawn in player1 (using the keyboard) it works fine and takes input but as soon as I spawn in player2 or 3 the camera of player1 seems to freeze and it no longer takes input. So my question is why is there a third player? Is it some kind of default player and why does it not work?

I've also tried calling create player only once. This causes the screen to split twice but the same problem as I mentioned above is still there. I.e. player1 seems to work until I spawn in player2.

I also tried to use the default third person character instead of my custom character. The issue of there being three player instances when calling createplayer twice remained but this time the screen that did not work/take input in the above mentioned examples began to work as intended.

I'm guessing this has something to do with my character being based on the "Pawn" class and not the character class, or perhaps I'm not setting something up correctly.

Thankful for any advice, Olle alt text

Product Version: UE 4.15
capture.png (65.5 kB)
more ▼

asked Mar 13 '17 at 02:52 PM in Blueprint Scripting

avatar image

6 1 2 2

avatar image Bonepower Mar 21 '17 at 07:22 AM

If anyone knows of a reference that handles the multiplayer system in unreal engine that would be greate as well.

avatar image Arvestra Mar 21 '17 at 02:20 PM

Have you tried using 0 for the first "Create Player" node and then -1 and/or 0 for the next? Splitscreen is an iffy thing to get working, I was having this problem a while ago when I was working on a project like that.

avatar image Bonepower Mar 31 '17 at 04:12 PM

This solved it for me, thanks!

avatar image Bonepower Mar 31 '17 at 03:27 PM

This solved it for me, thanks!

avatar image Shadowsora Jan 08 '19 at 10:26 PM

Could you please explain what it is you did? I'm having the same issue and changing the controller id for me is not fixing the camera or lack of input for the first player

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

0 answers: sort voted first
Be the first one to answer this question
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