Unet spawn object problem

Hi everybody,

i have been using Unity for several years and always avoided multiplayer because well, I’m not into multiplayer games… But now I feel it’s time to try it, so I’ve been studying and reproducing the Unet auto on Unity’s website and managed to complete it easily.

The thing is now that I am starting to toy with Unet, I am encountering some problems that I have been trying to fix for two days. I know Unity, but I just don’t understand Networking so well.

Here’s what I’m trying to do. I want to have three playable characters on each side of a one on one simple shooting game. I have understood that Unet allows to spawn one player object. So I have the player object being an empty object with a script and a NetworkIdentity component assigned. And at start, the player object spawns those three units, well at least one unit for now as I’m still trying to make it work.

I’ve been trying numerous things for two days and I’ve run out of ideas. I use a Command to spawn the unit. when I use the [Command] line before declaring the function, all the units are under the authority of a client. When I don’t use it, the units are well assigned, but the client’s unit is only created on one side, not on the other. And I have an error occurring in Unity’s debug log that says that the server is not active:

SpawnObject for DuckPrefab(Clone) (UnityEngine.GameObject), NetworkServer is not active.

Here’s the project on my google drive:
https://drive.google.com/file/d/1rXKGQI2g0jsjNvuhXsWuVgaukXa1dTsM/view?usp=sharing

Could someone give me a little help?

Thanks in advance.

Nicolas

Can you just paste code in question into the forum directly using CODE tags?

Also, it is a bad time to start a project with Unet now that it has been deprecated and scheduled for removal.