Shooting a weapon after it's equipped

RonaldRayGuns
Tue, 28 May 2019 11:15:44 +0000
Blueprint

I’ve made a blueprint script on my player character that can equip and dequip a weapon from anywhere in the world, but I’ve stumped myself on how to shoot the weapon when it’s equipped. I want each weapon that I create to have different parameters (fire-rate, magazine size, reload speed, etc) so that I don’t have to script every single weapons parameters onto my player character and then test to see which parameters I’ll use depending on what weapon is equipped. Thanks in advance!

I’m trying to fire my gun from the gun BP upon clicking Left Mouse when it’s equipped, and I want to be able to do this for any gun I equip.

This is the code inside of my gun (P90) that I want to be able to use after the gun is equipped on my character.

This is the code for equipping and dropping a weapon, just in case you need to see it.
(located in the player character)

14 posts - 1 participant