Keep location at the end of CameraAnim

Hi everyone,

I play a camera animation using PlayerCameraManager->PlayCameraAnim(…) from within the PlayerController. This all works fine, but I would like the camera to stay at the location at the end of the animation. Right now it just goes back instantly to the starting position.

Do I need to override PlayerCameraManager functionality? Or is there an easy way to tell the camera to stay at the location given by the animation?

Thanks!

So I found a nasty hacky solution for now:

void AMyPlayerController::Tick(float DeltaSeconds)
{
	if (CurrentCameraAnimInst != NULL && CurrentCameraAnimInst->bFinished)
	{
		GetPawn()->SetActorLocation(PlayerCameraManager->GetCameraLocation());
		SetControlRotation(PlayerCameraManager->GetCameraRotation());

		CurrentCameraAnimInst = nullptr;
	}
}

If there are better solutions I would love to hear them :).