Sync Ai
Options
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.
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.
0
Comments
-
Also keep in mind i have 100-150 AI's per game0
-
Hi, the same way as you sync player (but instantiate and run AI logic on master client).
Or with RPC's:
https://www.youtube.com/watch?v=wmt_rUSbA_c
a bit more complicated, but has some advantages.0 -
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 ?0 -
Yes0