Need HELP! With Buffered RPC's
Options
Hello!
I am working on a base building system. I got the PhotonNetwork.Instantiate gameobject down and other players in the server can see the building you are constructing. The problem I have is that when other players join the sever after your building is all finished they do not see it. I tried putting a buffered RPC when the gameobject is spawned in but strange things occur such as the RPC is called every frame when it is not suppose to be. Can someone help me with this issue?
Thank you!
I am working on a base building system. I got the PhotonNetwork.Instantiate gameobject down and other players in the server can see the building you are constructing. The problem I have is that when other players join the sever after your building is all finished they do not see it. I tried putting a buffered RPC when the gameobject is spawned in but strange things occur such as the RPC is called every frame when it is not suppose to be. Can someone help me with this issue?
Thank you!
0
Comments
-
PhotonNetwork.Instantiate is buffered and everything you create this way will be visible for players who join later on (except of course, the GO was destroyed).
Make sure you don't load the scene when you arrived in the room. Or if you do, pause the message queue.
Read this carefully:
https://doc.photonengine.com/en/pun/current/getting-started/feature-overview#_messageQ
And this:
https://doc.photonengine.com/en/pun/current/tutorials/instantiation
We can't help you with your logic code. If the RPC is called every frame, that's not a problem PUN creates and we have to focus on those, sorry. We just don't have the time for it
0