Sending RPC to all clients but one

Options
Hi everyone,

I am trying to send a RPC to all players but one. I do have a reference to the PhotonPlayer I want to exclude from the RPC. PhotonTargets.Others is not working here because the master client is sending the RPC. Is there a way to provide a list of players to the RPC or is it impossible to exclude certain players from a RPC (other than using the PhotonTargets enumeration)?

Cheers,
Korbinian Bergauer

Comments

  • Tobias
    Options
    This is not directly supported.

    Alternatives:
    - Put something in the message to have one player ignore it. Unless someone decompiles your game or sniffs traffic, the message is never noticed by the excluded player.
    - You can send the message once to each target player. Might be bad if many players are in a room.
    - Use the Interest Groups to setup all possible user-combinations you might need. In worst case, each needs a PhotonView to send to a group.