Search Unity

Third Party Bots in Mirror Multiplayer

Discussion in 'Multiplayer' started by ForceVII, Mar 19, 2022.

  1. ForceVII

    ForceVII

    Joined:
    Apr 18, 2020
    Posts:
    3
    Hi, I'm trying to make a online shooter game with bots in it. I learned how to sync player movement, bullets but I dont know how to add bots. I'm confused and I have some questions about adding bots:

    Should bots have Client Authority true? They shouldn't get controlled by players so I left Client Authority as false. But I couldnt instantiate bullets when Client Authority is false. The error was "Instantiating without authority"

    I dont think its true way to make bots but I enabled client authority and my code worked. Am I doing it right? Should bots have Client Authority? If I am not right how to instantiate bullets from a bot's script? How the code should look like?

    Thanks.
     
  2. LaurNTU

    LaurNTU

    Joined:
    Aug 15, 2019
    Posts:
    17
    Hello, I have the same error. Did you find any solution?