How to implement Ray Plane Intersection Point Function

Hello!

I’m pretty new to UE4 and just following a tutorial on YouTube. I’m stuck at 07:11 where he speaks of using a Ray Plane Intersection Point macro / function provided by a user here on the AnswerHub.

I’m not new to C++, however I’m stuck at where to implement this code to make it work correctly?

I already tried creating a new class derived from APlayerController overriding PlayerTick() or UpdateRotation(), assigned it to the project’s Player Controller Class. The code is executed, I can set breakpoints and step through but in the end NewControlRotation.Yaw is always -nan in the debugger.

And when trying to create a new macro like it is shown in the video / screenshots, I’m completely lost on what nodes to create and what is what.

Any help is appreciated.

Thank you!