I have a hunger/thirst system that decays over time. The way I’m doing this is by building up the elapsed time for each frame to the decay rate, then taking off a chunk of each of the needs:
My question is, how would I make this work properly on a multiplayer game? My idea was to call the ‘Tick’ event for each server tick, but I’m not sure how to correctly set that up. I’m working through some tutorials but information is somewhat sparse at the moment. I’ve set the relevant variables to replicate but that doesn’t seem to be a part of the solution.
Also, if I’m doing decaying needs incorrectly or in a particularly inefficient way then I’d love some feedback on that.
Thanks a bunch!