Best Way to Handle NPCs/Monsters?

Options
Hello,

Simple question:

What is the best way to handle NPCs/Monsters synchronization?

for now i thought of two possibilities:

1) give them a PhotonView and sync position as scene object or property of the Master Client
2) use RPC to determine the target(player who will get attacked) and let the scripts do the magic

Thanks for the feedbacks

Comments

  • vadim
    Options
    Hi,

    1) looks like usual way to handle NPC's
    2) may work if you are sure that logic running on different clients leads to exactly the same results. This is usually not the case for large time spans with random events or collisions or if float calculations involved. So use it with care.
    You may also fully synchronize NPC periodically while running on local logic between synchronizations to save bandwidth.