Unet [Command] not working?
Hello everybody. I was trying to make a gun that shoots a physical bullet in my first person shooter multiple game. This is just one big learning experience for me, and i have been able to work my way across the most problems, but this one has me very confused. I have looked it up several times, but to no help.
Everything works once i disable (comment out) the command code, but obviously nothing will work serverside then.
As you can see here (on the picture) i have commented out the command, and everything works fine. The bullets spawn and go as they should. This means that there is (possibly) no fault in the other scripts.
Once i have the command code active, the code does not even go off, which i ofcourse tested with the "spawned bullet" print.
The bullet prefab has both a network identity and a network transform component. The gun which shoots the bullet (The gun holds the script) has a network identity, which originates from the Player identity.
What am i doing wrong?
Thank you guys in advance!
Your answer
![](https://koobas.hobune.stream/wayback/20220612221718im_/https://answers.unity.com/themes/thub/images/avi.jpg)