How to implement Look at 3D direction after click to move action

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By david_Amlag

I know how to move units in a 3D world and how to use look at to make the unit look to certain position. But I don’t know how to implement both at the same time.
The idea is to click (with the right button of the mouse) in the position to which I want the unit to go, and keeping that same button, move the mouse in the position where I want the unit to look.

Something as seen in the photos:

Here you can see the action of moving and the arrow that represents the count, I want you to look at the unitsMove-Direction hosted at ImgBB — ImgBB
And here you can see how the units are in the positionMove-Direction2 hosted at ImgBB — ImgBB
And here you can see how the units are all looking in that directionMove-Direction3 hosted at ImgBB — ImgBB