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
asked Mar 13 '17 at 02:52 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here