How to get the transform (position) of a photon instantiated object instantiated by another client??

Options
Hi, I've just started transforming my game into a multiplayer game. In my game there is a flag that people can carry around, lose, respawn, float up and down... Summing up, it moves a lot.

Right now, the flag is spawned by the first player that enters the room. All the players have a HUD that contains an arrow that points to the flag always. To do this, I always follow the transform.Position of the flag gameObject. When I'm the first player, it is easy to get the transform when I'm instantiating it. However, I do not know how to get this information as the next players joining the room.

Any help or link to a guide would be appreciated, as I cannot find any clue of how to do this in the documentation.

Comments

  • Nori_SC
    Nori_SC
    edited November 2019
    Options
    photon transform clasic :)
    and go.transform .poz...