Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Need help with Networking spawn error

Discussion in 'Connected Games' started by philipwlodarczyk42, Oct 11, 2018.

  1. philipwlodarczyk42


    Oct 1, 2018
    I have created a script that works for the most part, the bullets are created, client can see them and be affected by them, but I have one problem, every time I shoot it spawns 2 bullets, 1 that goes forward like it is supposed to and one that just floats there. Every time I shoot I get this error

    SpawnObject for bullet(Clone) (UnityEngine.GameObject), NetworkServer is not active. Cannot spawn objects without an active server.
    PistolScript:Rpcshoot() (at Assets/PistolScript.cs:70)
    PistolScript:InvokeRpcRpcshoot(NetworkBehaviour, NetworkReader)

    How can I fix this?
  2. Joe-Censored


    Mar 26, 2013
    Looks like you are trying to spawn networked objects from the client. You can only call NetworkServer.Spawn on the server.