# Start line tracing at crossair position (middle of screen)

**URL:** <https://forums.unrealengine.com/t/start-line-tracing-at-crossair-position-middle-of-screen/140175>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 21, 2020, 9:00pm UTC](https://forums.unrealengine.com/t/start-line-tracing-at-crossair-position-middle-of-screen/140175 "2020-03-21T21:00:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1bd9001d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1bd9001d1](https://forums.unrealengine.com/u/anonymous_user_1bd9001d1)\
**Post date:** [March 21, 2020, 9:00pm UTC](https://forums.unrealengine.com/t/start-line-tracing-at-crossair-position-middle-of-screen/140175/1 "2020-03-21T21:00:10Z")

</div>

I have this following blueprint that starts from the camera position and it reaches the crossair. I want the line trace to begin from the crossair which is in the middle of screen, and not to start from camera position, how can I do this? This is for my pick up items functionality in a third person game, and can anyone tell me how I can access the camera in one of my c++ actor component code, I don’t seem to have access to it because I have a third person blueprint project

 ![asdas.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/97e28d354e594e8e16a51f7e62f74fd4e1f32247.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:** [March 21, 2020, 11:21pm UTC](https://forums.unrealengine.com/t/start-line-tracing-at-crossair-position-middle-of-screen/140175/2 "2020-03-21T23:21:14Z")

</div>

> [@anonymous\_user\_1bd9001d1](#):
>
> I have this following blueprint that starts from the camera position and it reaches the crossair. I want the line trace to begin from the crossair which is in the middle of screen, and not to start from camera position, how can I do this? This is for my pick up items functionality in a third person game, and can anyone tell me how I can access the camera in one of my c++ actor component code, I don’t seem to have access to it because I have a third person blueprint project
> 
> ![asdas.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/97e28d354e594e8e16a51f7e62f74fd4e1f32247.png)

It sounds like you want to use GetHitResultUnderCursor!:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/5/ff5aeb2963812eec71c73182aade9e77c605c0ac.jpeg "WTF Is? Get Hit Result under Cursor in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=uMjnbnQd1dI)

🙂
