XaiJu
CodeLikeMe
CodeLikeMe

patreon


Unreal Melee Combat - Lock onto nearest enemy - UE4 Open World Tutorials #62

We 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.

Unreal Melee Combat - Lock onto nearest enemy  - UE4 Open World Tutorials #62

Comments

What's the engine version you are using

Thilina Premasiri

"sphereTraceForObjects"

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?

Thilina Premasiri

THE Enemy does not stop when he enters the sphere, helpme


More Creators