Creating the EnemyCharacter Blueprint Class
Now that we have finished the logic for our EnemyCharacter
C++ class, we must create our blueprint class that derives from it:
- Open our project in the Editor.
- Go to the
Blueprints
folder inside theThirdPersonCPP
folder, in theContent Browser
. - Right-click and select the option to create a new blueprint class.
- Expand the
All Classes
tab near the bottom of thePick Parent Class
window, search for ourEnemyCharacter
C++ class, and select it as the parent class. - Name the Blueprint class
BP_EnemyCharacter
. - Open the Blueprint class, select the
SkeletalMeshComponent
(calledMesh
) from theComponents
tab, and set itsSkeletal Mesh
property toSK_Mannequin
and itsAnim Class
property toThirdPerson_AnimBP
. - Change the Yaw of
SkeletalMeshComponent
to-90º
(on the z-axis) and its position on the z-axis to-83
units. - After you've set up the Blueprint class, its mesh setup should look very similar to...