- Home /
The question is answered, right answer was accepted
,How do I transfer photon network ownership to another player?
I have a chess piece that I am grabbing in VR. I can pick it up using takeover or photon request however I need to be able to knock over other pieces. Those other pieces are not mine when another player is in the room. They are not mine until I grab them. I want to be able to remove ownership of an object when I let go of my chess piece and get ownership when picking up a piece. How would I transfer/ swap ownership to another player so that they become the owner when I drop my piece. I have a method for dropping the piece all I need is the line for transfering the ownership to the other player. Any help would be much appreciated.
Answer by VanToRiaXVII · May 16 at 03:33 PM
You should try to transfer the ownership by using the Takeover option. Here's the official documentation on how to do it: https://doc.photonengine.com/en-us/pun/v1/demos-and-tutorials/package-demos/ownership-transfer
Follow this Question
Related Questions
How To List Rooms (PUN 2) 1 Answer
[PUN2] Problem at pushing the other players 1 Answer
pun 2 change view Id of local player ? 0 Answers
Join Error photon 0 Answers
photon server RPC to client 0 Answers