I put an “is valid” after the window variable is incremented, and it is being incremented ( controller)
but when I go out of the collision sphere(server) even with the window open, it’s going to “is not valid”
Variables are not replicated from client to server.
You have to do the check on client or server side and inform the other side by a multicast/rfc call and then implement what to do next.
Another possibility is to do the check on client side, inform the server about the clients results and try to validate them on the server, if they are critical.