Open doors with button when in range?

I have been at this for a while now and i can not get it to work. i have narrowed it down to the button press not working once i link it to a branch. Is there a way to fix this or am i doing it wrong.

Should it only open when the character looks at it? If so, the best is when your button is pressed, send a line trace from your character into the direction the character is looking at. The length of your trace should be your interaction range. When the trace hits an actor, cast it to the door blueprint. If the cast is successful, call an event within your door blueprint that opens the door.

Oh i completely forgot about line trace.

Thanks a lot that has helped me so much.

I still have one question though. Can you set up a line trace in a third person document?
Never mind i have sorted that out.