How can I change other clients variable in Unity Photon multiplayer?
<p>I'm a bit confused with the PunRpc calls, I tried the PhotonTarget.Others to see if it would do health--; on other client, but it didn't work.</p>

<p>At the moment I want to know how I could do health--; on other client when I press space.</p>

<p>This is what i have tried:
this is the command:</p>

<pre><code>photonView.RPC("healthReduction", PhotonTargets.Others, null);
</code></pre>

<p>and this is the RPC</p>

<pre><code>    [PunRPC]
void healthReduction()
{
    health--;
    Debug.Log("Health--");
}
</code></pre>

<p>but it still wont work.</p>