// Called when the game starts
void UOpenDoor::BeginPlay()
{
Super::BeginPlay();
// Find the owning Actor
AActor* Owner = GetOwner();
// Create a rotator
FRotator NewRotation = FRotator(0.f, 60.f, 0.f);
FVector NewLocation = FVector(50.f,50.f,50.f);
//Set the door rotation
Owner->SetActorRotation(NewRotation);
Owner->SetActorLocation(NewLocation);
}
Is there a way to move an actor to another level?