General question regarding networked enemies

Options
I'm currently having issues with getting lots of lag when I spawn enemies in my 2 players co op game...this only happenes when 2 people are in the game. They each have a PhotonView and I only observe position and rotation.

Is it better to put a PhotonView on each enemy or put them in an array and manage them from another script and only use 1 PhotonView? I really want to maximize the amount of enemies my game can handle.

Also, my enemies are on a Navmesh and using a NavAgent. Do I have to network that as well?

Any help will be appreciated

Best Answer

  • Fivefingerstudios
    Answer ✓
    Options
    Looks like I solved my own issue.

    I was using Photonnetwork.instantiate on bother the Master and client. I'm now only doing it on the master and it works fine.

Answers

  • Fivefingerstudios
    Answer ✓
    Options
    Looks like I solved my own issue.

    I was using Photonnetwork.instantiate on bother the Master and client. I'm now only doing it on the master and it works fine.