Adding sound and particle effects
Now that we have the player moving and shooting to our liking, let's turn our attention to the enemy targets. Shooting one of the target Cylinders currently results in it changing its color to red. However, there is nothing that the player can currently do to destroy a target outright.
We can add more dynamics to our enemy interaction by producing Blueprint logic that destroys the target if it is shot more than once, while also increasing the reward for the player by producing a satisfying sound and visual effect once the target is destroyed.
Changing target states with branches
Since we want to generate effects that will be triggered by changes in the state applied to our target Cylinder, we must ensure that this logic is contained within our BP_CylinderTarget
Blueprint, which is in the Content
| FirstPersonBP
| Blueprints
folder. Open the Blueprint and look at the node group connected to Event Hit. Right now, when our projectile hits...