So I’m trying to make a role system that assigns each player a unique role. But I couldn’t get it to work properly.
I added this following code to try and see what was happening:
I have a code in the player’s pawn blueprint that lets me print that “Test Int” variable when the R key is pressed (for debugging). Now when I press that key for each player I get the following:
Client 3: 50
Client 2: 50
Client 1: 23
Server: 23
Why is it that two players get the same variable? And before you say its random chance with the “Random Int in Range” node, I bumped the max up to 10000 and get the same results.
Any thoughts?