# How do I change the player crosshair when looing at an object?

**URL:** <https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945>\
**Category:** UI\
**Tags:** crosshair, linetrace, unreal-engine, Blueprint, question\
**Created:** [June 15, 2021, 5:25pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945 "2021-06-15T17:25:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalamanceYT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SalamanceYT](https://forums.unrealengine.com/u/SalamanceYT)\
**Post date:** [June 15, 2021, 5:25pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/1 "2021-06-15T17:25:26Z")

</div>

So I’ve been trying to figure this out for a while now and I can’t seem to figure it out.  
What I’m doing is using a LineTraceByChannel every frame and it checks for an actor that has the tag “Interact” but when I hover over any actor I just get an “Accessed None Trying To Read Property” error message.  
Any idea how I can either get this method to work or a different way to make the crosshair change when looking at an interactable object?

This is how the bluerpint is laid out:

 ![341539-example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/f/f4f1d838a3e6c2b5296ae986299820836d1e7fee.jpeg)

---

<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 15, 2021, 6:40pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/2 "2021-06-15T18:40:50Z")

</div>

I’m assuming the FPS Hud variable is not assigned?

---

<div class="post-metadata">

**Author:** ![SalamanceYT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SalamanceYT](https://forums.unrealengine.com/u/SalamanceYT)\
**Post date:** [June 15, 2021, 7:51pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/3 "2021-06-15T19:51:32Z")

</div>

I’m pretty sure it is unless I’ve done something wrong.

![341560-cap.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/4/da4313ddeca7eb2e5ff5e85ec9c6a6fbde21f184.jpeg)

---

<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 15, 2021, 8:38pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/4 "2021-06-15T20:38:25Z")

</div>

Yes, it has the correct type, but it’s not assigned.

Try using ‘GetHud’ to assign it.

![341561-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/2/012aeee8158e76471f8d0ac07dbdb6608c13c3c5.png)

---

<div class="post-metadata">

**Author:** ![SalamanceYT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SalamanceYT](https://forums.unrealengine.com/u/SalamanceYT)\
**Post date:** [June 15, 2021, 9:15pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/5 "2021-06-15T21:15:29Z")

</div>

I see what you mean but I can’t plug ‘Get HUD’ into the ‘Set FPS Hud’

---

<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 16, 2021, 7:40am UTC](https://forums.unrealengine.com/t/how-do-i-change-the-player-crosshair-when-looing-at-an-object/484945/6 "2021-06-16T07:40:16Z")

</div>

Then

 ![341577-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/0/020a0eeb0fbf6a2e5170f7b1f8295f7706c5bfe5.jpeg)
