Trying to understand the code

Hi all,

Why is it that I can’t directly reference the UTankAimingComponent::AimAt(HitLocation) from Tank.cpp even if I add “TankAimingComponent.h” at the top of Tank.cpp? (This is a technical question rather than a best practice question. I literally can’t make the code get info from the UTankAimingComponent directly.)

Because the AimAt function is not static

Privacy & Terms