The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Sync Ai

2018-07-20 10:37:30

Hello ,
I am making a game where can join and leave whenever they want . i have AI in game which are constantly moving . how can i sync AI in all the clients, when a new player joins i want him to have Same Position of AI as other players who joined before him have.


2018-07-20 11:05:52

Also keep in mind i have 100-150 AI's per game

2018-07-20 13:35:17

Hi, the same way as you sync player (but instantiate and run AI logic on master client).
Or with RPC's:
a bit more complicated, but has some advantages.

2018-07-24 09:45:47

Hi @OneManArmy ,
i sync player with PhotonSerializeView . are you saying that i should instantiate player in master client and put SerializeView in each one of them ?

2018-07-24 12:04:15


Back to top