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, as follows:
- Open our project in the editor.
- Go to the
Blueprintsfolder inside theThirdPersonCPPfolder in theContent Browser. - Right-click and select the option to create a new Blueprint Class.
- Expand the All Classes tab near the bottom of the Pick Parent Class window, search for our
EnemyCharacterC++ class, and select it as the Parent Class. - Name the Blueprint Class
BP_EnemyCharacter. - Open the Blueprint Class, select the SkeletalMeshComponent (called Mesh) from the Components tab, and set its Skeletal Mesh property to
SKM_Quinn_Simpleand its Anim Class property toABP_Quinn. - Change the Yaw of SkeletalMeshComponent to
-90º(on the z-axis) and its position on the z-axis to-83units. - After you’ve set up the Blueprint Class, its mesh setup should look very similar...