How to push a button when looking at it?

Hello. I’m using UE5 default first person, I’m trying to push a button with animation, it is working but with box collider, Instead of being able to push the button once the player is inside the collider, I want to be able to push it when the player is close to the button and is looking at it.
Here is my blueprint :

How would I replace the box nodes without breaking the blueprint? please help me.
Note that this isn’t the first person blueprint

Line trace is vastly superior to the overlap method. For one thing, your player can’t push the button with their butt :rofl:

But, if you want to use a trace, you do have to do it from the player to the object.

A pretty standard way, is to use a blueprint interface to pass the component your player is looking at to the button actor ( or door etc ). If the button decides the player is looking at the right thing, then you can just use your current code to move the button.