How do I reference the remote player?

Hi,

I have instantiated a character in through the network. This character has a component to handle life, animations and other things, but it is turned off on the remote version (only accessible on the local).
From the remote, when it gets hit, I am trying to send a message to this component.

How do I reference the remote version of the player?

My guess is:

int PhotonID = mActorCore.GetComponent().ownerId;
PhotonView mPhotonView = PhotonView.Find(PhotonID);

Could someone point me in the right direction?

Best Answer

Answers