Create a new local player/ new player controller on unassigned gamepad button press

Edorion
Sun, 09 Feb 2025 00:27:38 +0000
C++

Hi, I am trying to give a way for my players to join the lobby in a local multiplayer game (non splitscreen) with the press of a button. The end goal is to have a menu like smash bros (for example). However I cannot find a way to do that.

Should I create player controllers for each player, and then simply let them be spectators if they didn’t join ? If so what should I do ?

My initial goal was to only create ULocalPlayer for players who wanna join. I have a way of detecting button pressed for unassigned controllers (through the UEnhancedInputWorldSubsystem), but I cannot find the controller id that pressed the button.

If you have a solution I would appreciate it.
Thanks a lot

3 posts - 2 participants