I’m currently developing an FPS using the FP Template as a starting point. Currently, the gun behaviour (input and actions) is scripted within the main First Person Character Blueprint (as in the template). I would now like to migrate all weapon behaviours to a separate class/blueprint/whatever that I can reuse for different guns (that will be attached to the character).
I would like some assistance on how to go about this, keeping the following in mind :
- The Gun Component will handle input directly, as well as all weapon behaviour will be described within the blueprint. Each gun has different inputs and firing behaviour, hence would like them to handle input on their own.
- Weapon Visuals and FX will be housed within this component.
Sorry if this is a trivial question, but I’m unable to get clarity on what I should create, what options to check and how I attach this component to the character. Note that I’m using 4.21 on a Blueprints-only project.
Thanks,
Sel.