So I have a system that randomly assigns each player a role. Once they have that role it spawns the corresponding Character Blueprint and has that client posses said Character Blueprint. It works fine if I play from the game map. BUT if I start the players in the lobby and then ServerTravel to the map it assigns the host / server a role and then ALL of the other clients receive the same role.
I can’t for the life of me figure out whether its an issue with the lobby or and issue with the role assignment in the game maps gamemode.
I changed things around a little bit with no success. Once again everything seems to work fine if the players start on the gameplay map. BUT is I travel from the lobby to the gameplay map (different gamemode) The server / host gets a random role but then all the other clients get the same role.
Does post login fire? If you attach a print string? My first guess would be that post login fires in the other gamemode and then when you switch maps their already logged in so it dosent fire and they get the 1st/default value of the enum?
My mistake it does fire every time a player joints if I put the print string before the assign role function. But if I put it after the function it only fire 2 times.