Unity multiplayer line rendering
I have networked player prefab. The player prefab has a gun as a child object. and the gun has a disabled line renderer, which draws a line when enabled to show the effect of shooting. When I click the mouse, I want the line render to become enabled for a second or two and then disappear. I have written the code for that and it worked. But now I want to show that over the network. So I made my Fire method into CmdFire and gave the control [Command] to the method. Now it fires on the server and clients connected to the server but not on the machine were the CmdFire was executed. Can some one help
Your answer
![](https://koobas.hobune.stream/wayback/20220612134650im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 5.1 networking 0 Answers
Unity UNET - Client unable to move 0 Answers
Create a game client/server in webgl 2 Answers
[uNET] Instantiated gameobjects not syncing for new clients 1 Answer