Implementation
Last updated
Last updated
Step-by-step guide on how to implement BPC_Hitscan into one of your blueprints. If you need guidance, feel free to open a ticket via our server through the Ticket-Support channel.
Implementing BPC_Hitscan
Open the Blueprint where you want to add this component.
In the Components Tab, add the BPC_Hitscan component to your blueprint.
Navigate to Class Settings and add the 'BPI_Hitscan' interface.
Implement the newly added functions in your blueprint. The Hitscan Component needs this information provided by the owning actor to work properly. It's basically up to you how you provide them. Refer to our examples for how we provided this information.
In 'Project Settings', create a new Trace Channel:
Name it 'Hitscan' and set the default response to 'Block'.
In 'Pawn', set the 'Hitscan' Trace Channel response to 'Ignore' to bypass Capsule collisions.
Set the 'Trace Channel' variable in BPC_Hitscan to 'Hitscan'.
Use 'OnPerformHitscan' in the Event Graph of your blueprint.
Click on 'BPC_Hitscan' and implement the Dispatchers:
You find them in the Details tab, scroll down, and click '+' for each Dispatcher you want to use.
Apply damage using the values like so