CodeLikeMe
patreon
Unreal Melee Combat - Lock onto nearest enemy - UE4 Open World Tutorials #62
🕑 Added 2019-01-06 15:58:18 +0000 UTCWe have already implemented fighting blendspace and also the AI characters can lock onto player or other enemy characters when they perceive another enemy with their senses. This time, I am going to show you, how to make the player character trace the nearest enemy character and lock on to him. In this demonstration, with the middle mouse button player can lock on/ off to the nearest enemy character.
Comments
Thilina Premasiri
What's the engine version you are using
"sphereTraceForObjects"
Thilina Premasiri
this is the closest source code release to the episode you are following, if you take a look into my code, it night help https://www.patreon.com/posts/combat-system-1-23998422
Thilina Premasiri
what did you meant by sphere?
THE Enemy does not stop when he enters the sphere, helpme