# i need help to fix my target lock

**URL:** <https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 31, 2026, 8:44pm UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545 "2026-05-31T20:44:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yukiflof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yukiflof](https://forums.unrealengine.com/u/yukiflof)\
**Post date:** [May 31, 2026, 8:44pm UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545/1 "2026-05-31T20:44:13Z")

</div>

i dont know what the issue is i selected the right stuff but nothing happens i make sure of using prints to see if is executing and nothing im using unreal 4

 ![Screenshot 2026-05-31 133057](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/1/7414d11c54bfd7d7402afcc4444eb96de67e3f4d.jpeg)

 ![Screenshot 2026-05-31 133221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/1/bb1d70d86f4b0b303f640747a7a108c3dc356135.png)

 ![Screenshot 2026-05-31 133232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/f/f9f472dad151cd9203fc58cb4da51352b2565260.png)

 ![Screenshot 2026-05-31 133245](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/4/c0462b8c524e6aff9a158ab5a46ca3d83c253925.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 1, 2026, 8:39am UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545/2 "2026-06-01T08:39:59Z")

</div>

If sphere trace is anything like line trace ( I never use it ), then you might need to block visibility also

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/8/4b8cd2763f6d8898aea63bb4aba0fc2597293023.jpeg)

---

<div class="post-metadata">

**Author:** ![yukiflof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yukiflof](https://forums.unrealengine.com/u/yukiflof)\
**Post date:** [June 2, 2026, 2:39am UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545/3 "2026-06-02T02:39:38Z")

</div>

oka im gonna try it

---

<div class="post-metadata">

**Author:** ![yukiflof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yukiflof](https://forums.unrealengine.com/u/yukiflof)\
**Post date:** [June 2, 2026, 3:02am UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545/4 "2026-06-02T03:02:49Z")

</div>

nope that didnt fix it … how would you use line tracing in this casing?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 2, 2026, 5:57am UTC](https://forums.unrealengine.com/t/i-need-help-to-fix-my-target-lock/2725545/5 "2026-06-02T05:57:35Z")

</div>

Sorry, I looked again, you have your trace math wrong. You need to get from the camera position, to a point some distance in front of it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/0/3103ba528b16150d3617d2d1a3553cb7a39a83d2.png)

With line trace, you just shoot a line out, with sphere you make a line of spheres 🙂
