So I gutted the First Person template in UE4 of all of the shooter elements because I wanted to start fresh. I know there are a bunch of separate elements I need to put together but some advice would be helpful.
Please note that I’m a bit of a beginner at Blueprints.
I’d recommend you to take a look into inheritance. You can create a base weapon class and derive children classes from it, allowing you to create multiple types of weapons with ease.
For example, you could have a base actor class “BP_Weapon”. This class could have variables such as:
weaponName [Text]
weaponDescription [Text]
currentAmmo [int]
maxAmmo [int]
magazineSize [int]
shootRange [float]
canShoot [bool]
And then if you create a child of this base class, call it “BP_Weapon_PlasmaRifle”, all the variables you created in your parent class will be derived. You can then setup custom values for these variables in the Default class settings of each child class you create.
I’d start by creating 2-3 weapons like this, using primitive objects as the weapon meshes, then focus on building the logic inside the Parent class (BP_Weapon). Now as much as I want to continue writing this post, it is very late and I must retreat.
I recommend you look up some tutorials on the subject. I recommend Reids Channel on Youtube. Specifically, this series might help vastly (don’t mind the third person setup, just follow it to see how some of the weapon logic is built):