How to remove a player in splitscreen multiplayer?
I'm working on a splitscreen multiplayer game and I'm having a problem. I start with a player select menu that lets you choose 2, 3, or 4 players. If you choose a 4-player match and then go back to the menu when the game is done, it always loads 4 players even when you select 2 or 3 player. Those players stay in existence even on the menu screen. I looked at this post and it sounds like there isn't any solution other than a custom C++ script that doesn't work any more.
I tried using Destroy Actor on the player controller and the get controlled pawn of player controller. Didn't work.
Is there really no way to remove players after they're created? That's incredibly weird. We're making a multiplayer game but if you can't select a 3-player match after a 4-player one that's a big problem. Does anyone know a way to remove players?
asked Mar 01 '15 at 08:55 PM in Blueprint Scripting
I solved this by having it remove (in reverse order from 3 going down to 0 in a for loop) the players that I saved in a savegame object file as "Not Joined". This seems to work pretty well.
Thing is, I needed 4 players before the game starts in earnest and they enter the level with Pawns, but I need to remove those players that are no longer involved once they get into the arena. I think players persist between levels is the reason.
answered Jan 02 '18 at 12:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here