Door doesn't open, not a repeat post

// Called when the game starts or when spawned
void AOpenDoor::BeginPlay()
{
	Super::BeginPlay();

	FRotator CurrentRotator = GetOwner()->GetActorRotation();
	CurrentRotator.Yaw = 90.f;
	GetOwner()->SetActorRotation(CurrentRotator);
}

Not sure what’s going on, I clearly dragged it under the door and have it setup just like I was told too but the door doesn’t do anything and the rotation is currently set at 0. When I start the game it doesn’t rotate to 90.

Problem solved.

Issue was deriving from Actor instead of Actor Component when creating the OpenDoor class.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms