Download

Syncing Character State

Hey folks,

I have a design question related to syncing character state and wanted to get some opinions on what the best practice is.

Basically I have a two minute timer for each connected client which needs to be synced and I’m wondering where the best place to do this is.

My inclination is to put a synchronized variable in my main ACharacter class and have a function which only the Authority can execute to update the value. The second option I’m looking at would be to keep a list of the characters and their current timer values in the GameState and use that for the synchronization.

Thanks!