Query audio photon


I'm a bit new to this and would like to know how I can make another player in the scene make a sound, is it done with a rpc or does the unity component do it on its own?
sorry for my bad English

Comments

  • Hi @Rivax95,

    to play a single sound effect, using an RPC is a good idea: you can for example send the name of the sound clip which is then played on all clients. However if you have frequent sound effects (i.e. footsteps), you should avoid using RPCs as this would increase the amount of sent message rapidly.
  • hi @Christian_Simon , thanks for you response.


    and how do I reduce traffic to send those RPCS that are so necessary?
  • I guess I don't get the question. You should avoid sending too many RPCs as this would increase traffic. Only use RPCs for important messages. To see how RPCs are working at all, I would recommend you taking a look at the RPCs and RaiseEvent documentation page.