Photon & Unity RTS multiplayer detecting ally and enemmy

Options
Hi. I started Photon a few weeks ago, and I seemed to have ran into a problem. I have already created a room where people can join and where the host can start the game. When the game starts, it moves the player into a plane where each of them can move their individual camera. However, while I was planning for my next goal, I questioned myself on how to make the allies detect allies and enemies. For now, Any player can move the units even if it's not theirs. Does anyone know how I should approach this problem?

Comments

  • Tobias
    Options
    While it looks like a distraction, read and code the Basics Tutorial once. Then you get some idea of how characters are instantiated and controlled. This should enable you to do it multiple times and solve the control problem, too.