Multiplayer Survival Status Handling
Hey all,
I recently got into multiplayer and know enough to make a basic game, but for something like a survival game, would the status (food, water, etc.) be handled by the server or the client, and would I use [Command] or RpcClient?
Answer by SonicScrew12 · Nov 18, 2017 at 09:33 PM
Usually you can't trust the client to handle behaviours like raycast shooting and stuff, but in this case I think it would be fine for this to be controlled solely by the client. Food and water variables shouldn't be affected by other players and they also don't affect other players, so it's safe to say that statuses would not need to be handled by the server.
~
You'll also always have a risk of cheating and editing the variables by players, but that's something that can be prevented with the right assets/code.