This is episode 69 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 through data binding in environment queries. I use various environment queries to calculate locations for flanking, taking cover, etc. By passing the firing range of the weapon held by the character, I can make sure the character stays within the firing range when the NPC characters are fighting..
project files
https://www.patreon.com/posts/63654325