How move to a location?

fist of all I cant use navmesh cause its Spaceship and it’s too much for what I do want to do.

my spaceship only moves in the X and Y axis, and my first player moves with two functions one control movement for X-axis and other control Y-axis movement.
I want my AiControler to use these functions to move enemy spaceship to a location I chose for it?

i use

 auto test =  FVector::DotProduct( ShipBase->GetComponentLocation().GetSafeNormal(),GetEenemyBase->GetComponentLocation().GetSafeNormal());

    	ShipMovmectComponenet->MoveLeftRight(test);
    	ShipMovmectComponenet->MoveForward(test);

this must make enemy ship folow my ship but enemy ship show wierd movments .

is this any thing similar to DotProduct for floats ?