# How to correctly replicate firing a weapon

**URL:** <https://forums.unrealengine.com/t/how-to-correctly-replicate-firing-a-weapon/424646>\
**Category:** Multiplayer & Networking\
**Tags:** shooting, weapon, unreal-engine, Multiplayer, UE4, Blueprint, question\
**Created:** [May 8, 2018, 9:51pm UTC](https://forums.unrealengine.com/t/how-to-correctly-replicate-firing-a-weapon/424646 "2018-05-08T21:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeswecamp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yeswecamp](https://forums.unrealengine.com/u/yeswecamp)\
**Post date:** [May 8, 2018, 9:51pm UTC](https://forums.unrealengine.com/t/how-to-correctly-replicate-firing-a-weapon/424646/1 "2018-05-08T21:51:31Z")

</div>

Hello, I working on a multiplayer shooter using dedicated servers.

Right now, I replicate shooting a weapon (full auto) like that:

Client fires → Reliable Call On Server → Server spawns bullet that is set to replicate movement, so everyone sees it

This works fine, except that I am experience a lot of lag/stuttering when shooting weapons with a rate of around 100 rpm, since there are a lot of reliable function calls to the server, but I making them unreliable makes them, well, unreliable and sometimes the weapon doesnt shoot.

What is the best way to replicate full auto shooting? Making an reliable call to server when someone starts firing, and when someone stops firing?

---

<div class="post-metadata">

**Author:** ![NoNam4\_Luiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoNam4\_Luiz](https://forums.unrealengine.com/u/NoNam4_Luiz)\
**Post date:** [May 12, 2018, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-correctly-replicate-firing-a-weapon/424646/2 "2018-05-12T15:12:52Z")

</div>

I think that if you are using an semi or full auto weapon you should do fire events with linetrace instead of spawning a new actor in every fire event, this should be used only for single (and slow) weapons like snipers, rpgs, etc
