Tanks aiming through hills

I’m not sure if anyone else has mentioned / has this behaviour, but my AI tanks are able to see through the landscape and shoot my tank. I suppose this is because we feed them the exact location of our tank in the TankAIController.cpp (AimingComponent->AimAt(PlayerTank->GetActorLocation())?

I imagine we could place some basic constraints on this if we told the TankAIController to not fire unless unreal could draw a line between the end of the barrel and our tank?

Not really looking for an answer. Just thought I’d post the discussion

Privacy & Terms