How to set an object child to another object?

Options
Hello.
In my game I have players and "relics". A relic is just some object which could be picked up by a player. But if one player kills another player, and that another player had the relic, then the player should lose the relic.

I guess I have to use RPC. I can add a PhotonView to the relic so I will now which relic must be set as child, but how to determine which player should be parent to the relic?

Comments

  • Oh, I see. I can use ownerId of a PhotonView that represents a particular player.