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 increasing the reward for the player by producing a satisfying sound and visual effect once the target is destroyed.
Giving our targets state with branches
Since we want to generate effects that will be caused by changes in state applied to our target cylinder, we have to ensure that this logic is contained within our CylinderTarget
Blueprint. Open the Blueprint from your Blueprints
folder, and take a look at the node group that triggers off of Event Hit. Right now, when our projectile hits the cylinder object, these nodes tell it to...