Sync Ai
The whole answer can be found below.
Try Our
Documentation
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.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Sync Ai
Romin
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.
Comments
Also keep in mind i have 100-150 AI's per game
OneManArmy
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:
https://www.youtube.com/watch?v=wmt_rUSbA_c
a bit more complicated, but has some advantages.
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 ?
OneManArmy
2018-07-24 12:04:15
Yes
Back to top