# How to make a linhatrace with start on the socket muzzle to the center of the screen

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-linhatrace-with-start-on-the-socket-muzzle-to-the-center-of-the-screen/455252>\
**Category:** Asset Creation\
**Tags:** line-trace, linetrace, tps, unreal-engine, question\
**Created:** [September 12, 2019, 6:08pm UTC](https://forums.unrealengine.com/t/how-to-make-a-linhatrace-with-start-on-the-socket-muzzle-to-the-center-of-the-screen/455252 "2019-09-12T18:08:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davi117](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davi117](https://forums.unrealengine.com/u/Davi117)\
**Post date:** [September 12, 2019, 6:08pm UTC](https://forums.unrealengine.com/t/how-to-make-a-linhatrace-with-start-on-the-socket-muzzle-to-the-center-of-the-screen/455252/1 "2019-09-12T18:08:03Z")

</div>

how can i make my linetrace go from the muzzle socket of my weapon mesh to perfect center of screen?  
Or make a detection for the line does not achieve something behind the player

---

<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:** [September 12, 2019, 6:26pm UTC](https://forums.unrealengine.com/t/how-to-make-a-linhatrace-with-start-on-the-socket-muzzle-to-the-center-of-the-screen/455252/2 "2019-09-12T18:26:44Z")

</div>

If the trace ends up dead center on the screen, then that’s what you’re looking right at. In other words, it’s a line trace from the camera. That’s why everybody does a line trace from the camera 🙂
