Skip to content
Documentation: Replicated Vaulting and Mantling
Share
Explore
Replicated Vaulting and Mantling

icon picker
Component Setup

Component Setup

The project comes of course with its own character class ready for usage for those who want to start a fresh project. Nonetheless, adding the components to your own character classes is as simple as ABC.
Open you character blueprint
Click on Add Component
Search for and select BP_InterpolationComponent
image.png
Initialize it in the construction script ❗IT IS IMPORTANT YOU INITIALIZE IT BEFORE THE IK AND PARKOUR COMPONENTS❗
image.png
Search for and select BP_ParkourComponent
2.AddBP.png
Initialize the components in the Construction Script or On Begin Play by using the OnInitialize function of the corresponding component and plugging in the character (Reference to self). You can also copy these scripts from our BP Character class
image.png
For setting up your inputs, you can either:
Plug in your inputs. You can either define these in your Project Settings under Input or directly use the Input Event Keys for testing. You can also copy these scripts from our BP Character class ​
4.SetInputs.png
Use your Jump input to make the character mantle/vault. In this case, don’t use the previous inputs. Instead, use the following code and make sure to have bMantleIfVaultFails set to true
image.png
Plug-in your sliding input. You can either define these in your Project Settings under Input or directly use the Input Event Keys for testing. ​
image.png
If you don’t have an animation slot for your animation montages, add a DefaultSlot to your AnimBP in order to play animation montages
5.DefaultSlotAnimBP.png
Retarget or import your animations and create montages from them
Inside your child character BP, click on BP_ParkourComponent in your components tab
In the details panel, scroll down until the Animation Settings for Sliding, Vaulting and Manling
Make sure to select the correct animations for each one ​
image.png
Make sure to select the correct animation slot in your animation montages ​
image.png
Setup your vaulting/mantling animation montages by adding the corresponding Montage Notifies. See video:


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.