Syncing Info from Networked Remote Player to Local

I have a plane game, where position info and other metrics are synced from the local player to their remote player on other clients, but how to I sync info from the remote player back to the sam local player, such as health? Here’s a snippit of what I have, but its not syncing as is should

 public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
    {

        //Debug.Log("View is Serialized");

        if (stream.isWriting)
        {
            //Our player

            stream.SendNext(transform.position);
            stream.SendNext(transform.rotation);
            stream.SendNext(Input.GetAxis("Fire") ==-1f);
            stream.SendNext(weapon.CurrentWeapon);
            stream.SendNext(damage.HP);
           
        }
        else
        {
            //someone else's player

            realPosition = (Vector3)stream.ReceiveNext();
            realRotation = (Quaternion)stream.ReceiveNext();
            realFiring = (bool)stream.ReceiveNext();
            realWeapon = (int)stream.ReceiveNext();
            realDamage = (int)stream.ReceiveNext();
           

        }

    }
    void Update()
    {
        if (!photonView.isMine)
        {
           
            transform.position = Vector3.Lerp(this.transform.position, realPosition, Time.deltaTime * 15);
            transform.rotation = Quaternion.Lerp(this.transform.rotation, realRotation, Time.deltaTime * 30);
            weapon.CurrentWeapon = realWeapon;
          
            if (realFiring)
            {
                weapon.LaunchWeapon();
            }
             
        }
        else
        {
             damage.HP = realDamage;
            print(realDamage);
        }
    }

You are not contrained to send position and damage. You can use more than one PhotonView as well. So you could have a PhotonView, which is belonging to the Master Client, which sends the state of everyone (HP, etc)…

Alternatively, use Custom Properties. Those can be stored per room or per player. The HP of a player can be a good value to store in those properties.
See:

The Team, Score and Pickup Demo in the package uses Custom Properties.

Hmmm. I never thought to use customProps. I’ll give it a whirl, and tell you the results!