Compensation for the lost RPC

Options
Hi, I am using pun2. So I want to instantiate a scene object which can be instantiated by any player and not only the master client. Currently, to achieve this, I am sending an RPC to the master client that tells the master client to instantiate the scene object in the room. The problem arises when the Master client leaves just before the RPC is sent and the master client has not been switched yet. In this case, the RPC is lost and hence no scene object is instantiated.

Please let me know what can I do to prevent this. Or if there is any other correct way to do this. Any help will be appreciated.

Answers

  • PoonamPal
    Options
    bump
  • Lizzard4000
    Options
    You could use "InstantiateSceneObject", so only the master client can control it. It does not matter who calls it.
    I'm using an older version of PUN, but this should still be possible.