Integration Into Projects
This page is dedicated to the situation if you already have a project with a custom character
Last updated
This page is dedicated to the situation if you already have a project with a custom character
Last updated
Since every project is different it is impossible to present a solution that makes the weapon attach perfectly to every character setup. This asset comes with a configured Character and Animation Blueprint setup where the offsets have already been calculated, you can take a look inside these Blueprints to get an idea what to do with your own character setup, many things are commented to help you out.
To operate the Flamethrower you need to bind the correct inputs to the included interface, below is an example of the interface function to call. Start Fire on Pressed and Stop Fire on Released will hook your input up to the Flamethrower, make sure you have a reference of the Flamethrower when you spawned and attached it to your character, in this case I named it a variable Equipped Item. Make sure the reference is valid, otherwise the Flamethrower BP will not receive the input and nothing will happen.
This asset does not come with Sound Effects, but it should be as easy to drag and drop your own Sound Effects since the system for it is in place, there are some free (or paid) sound libraries on the internet that you can make use of. By default there are multiple Ignition Cues you can setup to mix sounds together to create something more complex (optional), the main sound of the flamethrower is named SFX, there are two versions of each if you want to have a separate sound for First and Third person, so when watching another player fire, it sounds different to when you fire for yourself. This is optional but common to do in the industry and if you only have one sound effect, plug that into both of the 1p and 3p cues.
Your project might have an inventory system or a system that handles ammo, you can set this up in BP_Flamethrower and use the existing variable HasAmmo, which if set to false, the flamethrower cannot be fired anymore. By default there is no ammo system in this asset and therefore the flamethrower can fire indefinitely. More Booleans can be placed at the place of HasAmmo if needed.