How to synchronize unit state in a battle game with buff mechanism within fusion?

For example, as in a shoot game,the player got a gun and a power buff as well which could power up the damage, I want to calculate the real damage result at the moment that when the bullet hit the enemy. So how to synchronize the damage info to other players around? Is it nesscessary to calculate damage info separately for each player or there is some guaranteed statistics mechanism that could get a certain corret result which would broadcast to other player?

Comments

  • In best case, everyone is just sending their input to the host/server. This is the state authority of the player/character and can correctly calculate the damage, then update the relevant health value (authoritatively). So .. no need for statistics, etc. It should be part of the gameplay logic, based on the input.

  • Hi,@Tobias

    everyone is just sending their input to the host/server.

    If I only synchronize input operations, when I disconnect and reconnect, how do these buffs synchronize?