NokiMo
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine 5 C++ Tutorial - Turret #6 - Shooting Sounds and Muzzle Flash

This is part 6 of the Turret system in unreal engine 5 using C++. Today, we are going to get started with the shooting mechanics of the turret. When the turret detects an enemy through the laser beam it emits, turret will start shooting at the pointed target. First, we will add a UParticleSystemComponent as the muzzle flash and add a variable that holds the sound effect of the shooting. Then we will implement the Shoot() function which activates the muzzle flash and the sound effect at the nozzle of the turret gun. This function will be called through a timer when a valid enemy target is detected and timer will be cleared when the target breaks the line of sight.

password=CodeLikeMe_CppShoot

Unreal Engine 5 C++ Tutorial - Turret #6 - Shooting Sounds and Muzzle Flash

Related Creators