02.3 Integration With Game Animation Sample - dylogaming/CombatComponent GitHub Wiki

YouTube Tutorial

https://www.youtube.com/watch?v=4B2Q1kczpjA


1. Add Component & Inputs

Add the component & copy inputs to the CBP_SandboxCharacter image

image

Replace "Camera Boom" with "Spring Arm"

image

Also add in node setting "Can Attack" to true. This enables attacking when traversing (keeps player from getting stuck if traverses during attack)

2. Set Compatibility For Skeletons & Copy Sockets

image image

Copy & paste the sockets from Combat skeleton

image
image

3. Link Animation Graphs

image

Add Combat Interface

image

Copy what I have in the images below, feel free to copy/paste the blueprints into your project from here)

image

❗ Important Notice ❗

When copying from Blueprint UE, do not copy nodes directly from the graph because pasting them this way can cause your project to crash


Use the designated Copy Nodes button and paste them safely.

Example Image

Don't forget to assign the instance class & set the boxes to true when clicking on the purple node

image

Also, disconnect the "Default Slot" node that's there by default

image

4. Adjust Combat Component Variables

In your character BP, make sure you set "Use External Locomotion" & "Blocking Flips" to true

image

5. Fix Joints

image image

To fix the joints, open the skeleton asset for the UEFN mannequin, and show "Retargetting Settings"

Then from "root," right-click and select "Animation Scaled" and for "spine_01" put "Skeleton"

image image
⚠️ **GitHub.com Fallback** ⚠️