Aim, Click, Teleport

Only one problem with that, I have no clue how to put that into actual code as I have no experience with UE4