how to get the number of controllers connected

Hi, thanks all who have helped me all the way till now. Im making an item wheel that the players can choose which ship/weapons they want to use. Im done with the item wheel but now the problem is that when I use a new controller(assuming player 2), the player 2 have to press the same sequence which is press start, A then X to pop up the item wheel, but player 2’s item wheel will be directly above the player 1’s item wheel. As seen in the pictures in the link, each player only have one blue box which shows which item they are picking, but there is 2, so there is 2 item wheel overlapping each other. Any idea how to translate the widget in the blueprints. I created the umg as the new player plugs in their controller in the player controller.

Blueprint:


In game view:

I assume that both player controllers thinks that they are both controller “0”, any idea how to fix that issue?

does anyone know how to fix the issue?

Clients only have their own PlayerController. So you won’t have the Controllers of the other Players.

Only the Server has all PlayerControllers. If you want to work with the other controllers, you need to let the server call the draw functions on the client.

even if its a single client game? like4 players using the same console

If it’s local, generally you need to use the “Create New Player” node to create a player. The output can be used as a “PlayerID” of sorts so that you can tell PlayerControllers, Pawns and Widgets apart.

I manage to make it not overlap but the widgets are all controlled by one controller now

In that case that “single client game” is not a client, is a standalone game, and it acts as a “self contained server”

PD: I know it’s an old thread, but I wanted to reply this comment just for new people that come in into this thread.