# Issue with 'LockOnTarget' system not using directional movement anims

**URL:** <https://forums.unrealengine.com/t/issue-with-lockontarget-system-not-using-directional-movement-anims/1863250>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 19, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/issue-with-lockontarget-system-not-using-directional-movement-anims/1863250 "2024-05-19T13:06:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PantslessJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantslessjohn/32/939169_2.png) [@PantslessJohn](https://forums.unrealengine.com/u/PantslessJohn)\
**Post date:** [May 19, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/issue-with-lockontarget-system-not-using-directional-movement-anims/1863250/1 "2024-05-19T13:06:39Z")

</div>

Hey there,

I’m new to UE5 and don’t really have a programming background of the sort, so it’s safe to say I’m a beginner when it comes to this stuff.

I’m currently working on a small lil’ project that is using the Third Person setup, I’ve found quite a lot of resources that’s helped me learn a lot, but I’ve been stuck for two days on trying to build a ‘LockOnTarget’ system for my combat, I’ve got the lock on and character rotation working, but I’ve gotten two issues with my ‘system’ that I can’t figure out.

First issue is; when an enemy dies, the lock stays on - I’m thinking I need a check; "If CurrentTarget=Dead \> SwitchTarget, but I don’t know where to put it, so any advice there, would be great.

As for the main issue however, it’s about the directional movement, once you’re locked on a target, it is only using back and forward anims, I’ve tried setup a blend space but hit a wall on how to call it when locked, so figured I’d ask for some help on here to get a sense of direction or just plain advice ^^

Thanks in advance, and here is the node blueprints;

> **[Half-working LockOnTarget posted by anonymous | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/nopy7480/)**
>
> No description provided

I apologise for it being a bit disorganized, the anim/rotation stuff is the nodes on the very right, the bottom nodes is my latest attempt when it comes to the anims.
