PUNRpc for himself - locally or on network?

Options
When I call a method with a PunRPC attribute, if this PunRPC is my own, will I also receive a message via the network, or locally, without using the network? How is this works in photon logic?

Comments

  • OneManArmy
    Options
    Hi, maybe you should read documentation.
    All Sends the RPC to everyone else and executes it immediately on this client. Player who join later will not execute this RPC.
    Others Sends the RPC to everyone else. This client does not execute the RPC. Player who join later will not execute this RPC.
    ...
    ...
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @dmitrii,

    Thank you for choosing Photon!

    As @OneManArmy suggested, reading the docs might turn up very useful.
    What you are looking for is either choosing PhotonTargets value that ends with "ViaServer" or not.