Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Third Party [PHOTON]RPC set active wont work

Discussion in 'Multiplayer' started by Moddwyn, Feb 28, 2017.

  1. Moddwyn

    Moddwyn

    Joined:
    Jan 27, 2016
    Posts:
    49
    Code (CSharp):
    1. [PunRPC]
    2. public void ShowShield (bool active){
    3.     ability.shield.SetActive (active);
    4. }
    Code (CSharp):
    1. GetComponent <PhotonView>().RPC ("ShowShield", PhotonTargets.AllBuffered, true);
    Why won't this show in the other clients? It shows in my client but not to other people. Why?
     
  2. Kamil-Says

    Kamil-Says

    Joined:
    Jun 30, 2014
    Posts:
    154
    First check if the rpc executes on other clients via debug, if not then make sure you send it with your owned view.