Spawn projectile on weapons from inventory

I tried do like in this tutorial:

I made my blueprint look like this:

And it works, but I wan’t to continue the first tutorial and add muzzleflash etc. but I’m not using the Muzzleflash socket now like in the tutorial.

I also need to figure out how to only make it fire only when a weapon is equipped .

I’ve made a small test video: