Clearing RPC
Options
I can't seem to find the answer to this with search.
How can I clear the list of incoming RPCs on the master client so it doesn't get processed? The RPC events are not buffered, and sent from clients.
What I am trying to achieve:
When master client pauses the game (home screen / back button) and resumes the game, I DONT want to process any of the RPC events that were triggered by clients while the master client was away from the game.
How can I clear the list of incoming RPCs on the master client so it doesn't get processed? The RPC events are not buffered, and sent from clients.
What I am trying to achieve:
When master client pauses the game (home screen / back button) and resumes the game, I DONT want to process any of the RPC events that were triggered by clients while the master client was away from the game.
0
Comments
-
Hi,
you could explore changing network group while paused. changing network group is not synchronized but can certainly set this via an rpc for the player going in Pause
https://forum.unity3d.com/threads/photon-send-rpc-to-specific-groups-photonview.267479/
I would however simply put a check at the beginning of each rpc method that checks if in pause and simply return if in pause, that would be the most flexible and direct approach to not executing rpcs being received when paused.
Bye,
Jean0