Hi,
I made a multiplayer game based on host/client networking (no master server).
The hoster is the one who launch the game, and tell everyone to load the game scene.
Then, I want to check if everyone is ready to start the game (if everyone has finished to load the game scene). For now, clients just send with an RPC “i’m ready !” to the server, and when every client has sent “i’m ready”, the game can start.
But i was asking … what if the hoster have a bad computer and client load faster the scene.
They send with an RPC “i’m ready”, but the hoster is still loading : What happen ?
- Unity is smart and the hoster receive the RPC after the scene is loaded, and then running the function ?
- The RPC is lost and my game will never start (cause they send the “ready” message one time) ?
- The hoster receive the RPC but he consider that he receive it on a previous scene, and then it crash cause the function “i’m ready” doen’t exist in the previous scene ?
Or is there an other way to check if everyone has loaded the scene ?
Thanks a lot everyone.