# How to reset Sphere Trace Interaction with Actor

**URL:** <https://forums.unrealengine.com/t/how-to-reset-sphere-trace-interaction-with-actor/1151345>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 2, 2023, 1:02am UTC](https://forums.unrealengine.com/t/how-to-reset-sphere-trace-interaction-with-actor/1151345 "2023-05-02T01:02:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 2, 2023, 8:23am UTC](https://forums.unrealengine.com/t/how-to-reset-sphere-trace-interaction-with-actor/1151345/3 "2023-05-02T08:23:29Z")

</div>

> [@jpaschutte](#):
>
> the problem is that after that it keeps on opening and closing even if im not looking at it.

For as along as the `Hit Actor` reference is valid, the `IA Interact` will be happy to send it interface messages. And this variable remains valid until we override it with another value. Which means it will be valid pretty much all the time.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/d/47d428ddf9db17e6fef5e2cb46cfcf2812b1083b.jpeg)

Depending on how the game works, there’s more than one solution here. Let’s start with the most straightforward:

- run the line trace script on `IA Interact` _instead_. It does not do anything special when IA Move & Lookaround calls it. You would not even need a variable this way.

You may have other plans for the interaction later on (like having “Press E to Interact” pop up), or some other mechanics will kick in. But for now, see if you can make it behave correctly without the prompt.

* * *

Regarding the _Reset_, you can assign and un-assign values like so:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/f/b3fc608b48146733951afdffcbadd682290fba54.png)

Leave the dropdown blank to make it null. You could nullify if when the player moves away and ends overlap, for example. This may not be necessary if you apply the solution mentioned in the bullet point.

Do tell how it goes.

* * *

If you prefer to take your time, consider exploring this:

> [@Third person crosshair object highlight troubles](https://forums.unrealengine.com/t/third-person-crosshair-object-highlight-troubles/252041/13):
>
> The communication in the example revolves around Inheritance + Interface - a potent combo, imho. the base class implements the interface (which children inherit) the widget uses the same interface - calls children receive can be propagated: Actor → Widget Component → Widget without casting or finding user widgets (this can be done in many ways, though) the player has a collision sphere and sends an interface call to overlapped actors as we approach: [image] [image] Above, handl…

It’s a similar setup where nearby objects pop up icons that highlight when looked at, and can then be interacted with. There is a project attached if you want to take it for a spin.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-reset-sphere-trace-interaction-with-actor/1151345)._
