Controlling AI to all the remote systems

Options
Hi,

I have a game in which there are about 30-40 AI's which will be walking and dancing randomly in the map. Now, I need to sync all the AI's event to all the remote systems. If I use one of the client to control the entire AI in all the clients, then who will control those AI if the client goes offline or in background. I might change the control to other clients before going in background. But, how will I know, while setting the master client to the other player, that he is in background or foreground.

Answers

  • dingoedition
    edited April 2016
    Options
    First: Every room ( = game session) got it's own master client and photon views owned by scene (= non player objects). If master client leaves or looses connection, one of the other player controlled photon views become master client and take control of the scene photon views. So no need for headache.