Hi guys, I know this sounds strange, but my project requires it and I can't figure out how it works!
In my game, the host is handling all character movement and the peers only get character stats. The multiplayer connection is working just fine and I'm able to send messages from the peer to the host.
However, I'd like to be able to sync the host's "peer-avatar-object"'s variables with the peer's avatar variables.
All multiplayer tutorials that I found always consider the peer as an "emitter" that synchs with the host.
I want it to be able to sync object variables just as if it was the host receiving them from the peers.
I could use messages from the host to the peer, but as I understood, it isn't as effective nor practical for constant flows of info.
In other words:
My host handles a "Health" variable for each avatar. I would like to have the peers know what their "Health" is as frequently as possible.
Tutorials only show how to send peer info to the host and let it update automatically via synch.
How can I accomplish this?