Unreal Melee Combat - NPC Attack AI & Hit Range - UE4 Open World Tutorials #72

Опубликовано: 14 Январь 2025
на канале: CodeLikeMe
7,618
121

Project files :   / 25183607  
In the current version of the enemy attack AI we have developed in unreal engine 4 for our melee combat system, all they do is when ever they see an enemy, they run to the enemy and start attacking. They don't consider factors like the distance from them to the enemy when they are in fight. So, today I am going to implement a method where they calculate the distance from them to their enemy and only if the enemy is withing the hit range of their melee weapon, they will launch the attack.

► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
  / codelikeme  
►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits

Full open world series playlist :    • Unreal Open World Tutorials  

Like my facebook page for more content :   / gamedevelopersclub  
Follow me on twitter :   / codelikeme2  
Follow me on reddit :   / codelikeme  
#CodeLikeMe #unrealengine #ue4 #indiegamedev