Answers for "Photon Networking: how to take over ownership?"http://answers.unity.com/questions/1388945/photon-networking-how-to-take-over-ownership.html
The latest answers for the question "Photon Networking: how to take over ownership?"Answer by Sab44http://answers.unity.com/answers/1389292/view.html
I managed to fix it. The solution is to check if you're the owner, and if you aren't, to transfer ownership to yourself.
if (controller.GetPressDown(triggerButton) && pickup != null)
{
if (pickup.GetComponent<PhotonView>().ownerId == PhotonNetwork.player.ID)
{
grabObject();
}
else
{
pickup.GetComponent<PhotonView>().TransferOwnership(PhotonNetwork.player.ID);
grabObject();
}
}
Hope this helps someone who had the same struggle as me.Fri, 04 Aug 2017 14:52:27 GMTSab44