TPS Weapon firing

Use the FPS starter kit that comes with UE4.
However, for some reason if you create a project with FPS kit, it shoots a ball.
If you create another project and import the FPS kit, it will shoot using raycasts, which is what you want.

Use that code.