Skip to content

04. Weapon ‐ Create New

DYLO Gaming edited this page Dec 16, 2024 · 2 revisions

Tutorial Videos

Custom Melee

Create a child from BP_Weapon

image image

1. Weapon Type

The first thing you need to decide is if it's going to be a melee or ranged weapon

image

2. Weapon Socket

Then decide the primary socket where the weapon will attach to

Hide bones under the skeleton window & you can see where each preset socket is

3. Other Settings

Set up the rest of the variables respective to your weapon type

Melee

If creating a melee weapon, I recommend looking to Sword (2 Hand)/Sword & Shield/Fists as examples

Inside BP_Sword 🧩 Attack Pattern we can see 4 attacks have been set

image image
image image

The first attack in the array will be used for the default attack. This example is named "1"

Upon attacking, the montage plays and several notify windows run executing additional logic

ANW_Damage
Deals damage to any hit actor during window
ANW_NextAttack
If attack input is pressed during this window, the next attack specified, in this example "2" is played
ANW_WeaponTrail (Name gets changed when you assign trail particle) Spawns a weapon trail following weapon during attack animation

⚠️ Note ⚠️

If you set "👾 Debug" to true, you will see the collision generate during damage window