This is episode 68 of the third-person shooter series based on Unreal Advanced Locomotion System. Today, I am going to implement an effective range for the guns and integrate the range into the behavior tree based AI system I have implemented for AI characters. So here, The enemy will consider the effective range of the gun he holds before attempting to attack the opponent. If the NPC has a short range weapon like a flamethrower, he will come closer to the player before firing the weapon. But if he has a rifle, he will shoot it from a higher distance.
.
project files
https://www.patreon.com/posts/63654325