I made my door slowly opens when you start playing. it stops moving when it gets to 90 %
FRotator CurrentRotation = GetOwner()->GetActorRotation();
if(Rotation < 90)
{
Rotation = Rotation + 00.05;
}
CurrentRotation.Yaw = Rotation;
GetOwner()->SetActorRotation(CurrentRotation);
A float variable "Rotation " is declared in the openDoor.h folder