How to connect our mechanics to your character BP
There are 54 Actor Components in the main character of the Modern RPG Survival. We decided to separate the code like that to let you configure your own character, as you want.
Now we are going to create a new character BP and setup it with these components. Let’s create a new character class
Animation Blueprint
You need to add the ABP_Shooter (Animation blueprint) to the character’s mesh.
Result:
Blueprint Interfaces
You need to add following interfaces to the character BP
The camera and spring arm settings
Highlight and copy the following components from the BP_DemoCharacter and paste them to yours.
Widget Components
Highlight and copy the following components from the BP_DemoCharacter and paste them to yours.
Death Camera Components
Highlight and copy the following components from the BP_DemoCharacter and paste them to yours.
Damage locator and damage effect widget component
Highlight and copy the following components from the BP_DemoCharacter and paste them to yours.
Result of the copy – paste actions
Your character should look something like this:
Adding Actor Components and Variables
Open BP_DemoCharacter and check the Components window. You will see 54 components of the actor. Let's add and configure them all.
Variables
You need to create some variables in the character BP:
The Default Value of the variables
After adding the variables, you need to setup its default values.
Functions
Now you need to create some functions in your character BP. You can find them all in ‘Functions’ window of the BP_DemoCharacter:
Actor Components
Copy and paste all components from the BP_DemoCharacter to your character BP.
Code
Copy all code from the BP_DemoCharacter and paste to your character blueprint.
Result:
Configuring blueprint interface functions