I am a begginer on working with network and replication, and i have a question that i think is simple. I created a simple third person in which a player collides with a block and an INT variable is incremented. After 15 seconds the server prints both player scores on the screen. Problem is that only one of the players score is updated. I will add some screenshots of my blueprints.
This is what happens when a player overlaps a cube.
This is the event that is called on the player. The boxes variable is replicated and is used to store how many boxes i caught.
This is the game mode event that after 15 seconds prints both players score on the screen.
This is what is printed. Both players had a score of 3, but only one is printed correct. Ignore the 0, is work in progress UI, it does not have it’s functions yet.
you can also find my project here: GitHub - Xadovsk/UE4NetworkTEst
thanks in advance.