RAMA! im trying to implement a RTS selection box in C++

Hi could anyone help me out
why doesnt this work? its on a tick and the anchor point is being set in a another function on lmb click
the fbox part is exactly like what rama did in his seelection box node.

APlayerController* PlayerController = Cast(GetController());
if (PlayerController != nullptr)
{
// Get the coordinates of the mouse from our controller
float LocationX;
float LocationY;
PlayerController->GetMousePosition(LocationX, LocationY);
FVector2D DragPoint(LocationX, LocationY);
FBox2D Box;
Box += AnchorPoint;
Box += DragPoint;
UE_LOG(LogTemp, Warning, TEXT(“Your message”));
}

i have already implemented wasd movement, zoom , pan and screen edge hit on a Pawn class(not spectator pawn) and it all works perfectly im really stuck on this

APlayerController* PlayerController = Cast(GetController());
if (PlayerController != nullptr)
{
// Get the coordinates of the mouse from our controller
float LocationX;
float LocationY;
PlayerController->GetMousePosition(LocationX, LocationY);
FVector2D DragPoint(LocationX, LocationY);

		FBox2D Box;
		Box += AnchorPoint;
		Box += DragPoint;
		UE_LOG(LogTemp, Warning, TEXT("Your message"));
}

Hi, is the code not being called or is it an issue with selecting actors once you get the Box?