Hello, I’m new to multiplayer and unreal and I’ve ran into this problem.
Goal: On a key press, set a state change with an OnRep bool variable, to switch to another game state where the server and clients have different controls and variables like health. I want it to be only triggered by the listen server character so I used switch authority.
Problem: When I do this, the variable is set fine on the server and stays set to true. Although on the client, it seems to be set for a short moment through OnRep, but then directly after, the value reverts back to false. I don’t have anywhere down the chain setting the variable back to false.
Am I approaching this wrong?