Literally, it can only find a solution with a percentage of %50 chance. Also when I use debug lines, it lines don’t come out from tip of the barrel, but from the beginning of barrel why is that? I have:
FVector StartLocation = Barrel->GetSocketLocation(FName("Projectile"));
in TankAimingComponent.cpp and I’ve also double checked that there is a socket named projectile at the tip of the barrel.