I'm looking to create a blocking feature on my social app. In theory, when you would block the player, they can't see or hear me and I can't see or hear them. Any ideas on how to achieve this?
I'm going to need some more detail and/or context but you should take a look at the Photon Voice documentation for all of the commands and scripting so you can work on this independently if need be. What IDE are you working inside of?
Photon Voice Documentation: https://doc.photonengine.com/en-us/voice/current/getting-started/voice-for-pun
Hey @Klover I'm trying to achieve a similar feature of blocking players like Horizon Worlds. When you block someone it mutes them, turns them off but it also mutes you for the player that you block so they can't hear you either. I've already got the muting and hiding working for the player I want to block, I just don't know how to mute myself for that one individual character. I hope that makes sense.
I'm using Visual Studio
Oh you just have to get that player's Photon ID from their gameObject in the scene and send an RPC to that player specifically.
Awesome I will definitely look into this but doesn't the Photon ID change every time when they come back into application? I'm wondering how we would be able to ensure it's the same player every time they come back. Thanks @Klover
Oh but also with this technique, how would I then make it so it mutes me for that player? I'm having a hard time understanding the logic of how the RPC would send the command to Player B to mute Player A.