Here’s my function implementation of the opening door.
void UOpenDoor::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
FRotator CurrentRotation = GetOwner()->GetActorRotation();
CurrentRotation.Yaw = FMath::Lerp(CurrentRotation.Yaw, TargetYaw, 0.01f);
GetOwner()->SetActorRotation(CurrentRotation);
}