Drop in and out local muiltiplayer
I'm having problems getting drop in and out local split screen working. I want to have when the start button is pressed on a connected controller (which is player 0) a second player is added.
I have tried a few things and how I think it should works is I listening for input from a second controller and on an input event I create player. What I'm can't seem to work out is how to listen for input from player controller 1, which I have been creating on Begin Play in Game Mode and then enabling input from player controller 1, but the input does seem to work, I have been adding a debug print screen to test this.
I'm not sure if this is the right way to go about it so I would like to know if anyone know how to get this working?
asked Sep 14 '14 at 12:49 AM in Blueprint Scripting
I have experimented with the Create Player node in Game Mode classes, and it appears to create a local player and create a splitscreen viewport for them.
You can drop a player out via the Remove Player node, and it will also remove their splitscreen viewport.
Both nodes take a Player ID as input. I have not been able to get it to add any more players after there are 4 players on one device. I am assuming this is a limitation imposed because Unreal doesn't know how to split the screen more than 4 ways.
So if you want a player to drop themselves from the game, you can, on their PlayerController class, wire self -> Get Player ID -> Remove Player node, so it removes only the local Player object of the PlayerController that has that ID.
I'm not sure how to decide which ID to use to make sure you get the same game pad for the same local Player for the same PlayerController everytime though.
answered Feb 10 '18 at 07:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here