Camera is not moving forwards/backwards

Hi All,

I’m quite new to this but I’m trying to move the camera forwards and backwards, left and right. However it doesn’t seem to be doing this.

I have the following code so far:

UCLASS()
class TEST_API APlayerCamera : public APawn
{
...
public:
    void MoveForward(float axis);
...
}

....
void APlayerCamera::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
    ...
    PlayerInputComponent->BindAxis("MoveForward", this, &APlayerCamera::MoveForward);
    ...
}

void APlayerCamera::MoveForward(float axis)
{
    	if(bIsCameraSelected) // This is changed in CameraSelected when Right Mouse button is clicked and changed to false when not.
	{
		UE_LOG(LogTemp, Log, TEXT("Being called here"));
		
		AddMovementInput(GetActorForwardVector(), Axis);
	}
}
...

However, when I try to then move the camera forwards by tapping W on keyboard, the camera does nothing. Except this function is called as I tested with a UE_LOG.

Cannot seem to get it to work, even with blueprints either.