Hi everyone, I have a variables that is set to replicate andd I change it on the server, however, it does not replicate to clients. Anyone could help?
It probably does replicate.
You spawn one pawn for each player. It’s just that that the variable you set is in the Pink User (the one with pink name) and the variable you read from the client is the one in the White User.
This should do what you want:
Alternatively you can make the variable static in C++.
I think the set should be for the specific client, but the read out should be for all. Otherwise you are just setting the bool for each player to the same value.
I think the op want to just read from the specific player and not set it for all at once.
Basically for the proper reading it should have the same logic as your code except of instead of setting the bool it should read it and append to the name of the object.
You that’s right. The server will flip this value in all pawns. The intention of though wasn’t clear to me. Anyway the explanation is still correct. Just the solution would depend on what the OP wants to achieve.