GetPawn is unidentified

TankPlayerController.cpp

ATank* ATankPlayerController::GetControlledTank() const
{
return Cast(GetPawn());
}
TankPlayerController.h

class BATTLE_TANK_API ATankPlayerController : public APlayerCameraManager
{
GENERATED_BODY()

public:
ATank* GetControlledTank() const;

};

never mind i fixed it i had to change one of the #includes to GameFramework\PlayerController.h and change APlayerCameraManager to APlayerController

Privacy & Terms