How would I go about creating a banner for each joined player?

Hi yall, I’m working on a multiplayer board game and I’m trying to display a banner on the screen for every joined player.

In the system I’ve been working on when a player joins, the game mode gives the new player state a list of all other joined player states, which it can use to create banners for them. Then when another player joins, the game mode somehow tells all of the existing player states which player joined.

Is this the best way of doing it? I keep running into issues with null player states because I’m trying to get it all to work right when the game starts.

Thanks for reading! I hope that all makes sense.

Hey man I’m not the most knowledge with this but have ran into the same issue before. So PlayerState is always going to be replicated, if you just get a reference to it, it will likely return null bcs BP wouldn’t know which one you’re specifically referring to. Try to get the PlayerController and then get the PlayerState from it, or you can get the GameState and then get the PlayerArray which is an array of all PlayerStates currently in the game. Hope this is helpful!

Thanks for the reply! I had been working on this issue for a while and I finally figured out that sometimes the PlayerState referenced by the PlayerController is null when the game starts. The workaround I came up with is if PlayerState is null the first time, wait for half a second, then check again.