C++ component identifier not found. Need Help

I would like to create a floating component, but I keep getting this identifier not found error messege. How can I create or find this identifier?
Note: the GetActor and SetActor are the ones related to this error.

Super::TickComponent( DeltaTime, TickType, ThisTickFunction );
	FVector NewLocation = GetActorLocation();
	float DeltaHeight = (FMath::Sin(RunningTime + DeltaTime) - FMath::Sin(RunningTime));
	NewLocation.Z += DeltaHeight * 20.0f;       //Scale our height by a factor of 20
	RunningTime += DeltaTime;
	SetActorLocation(NewLocation);
	FRotator ActorRotation = GetActorRotation();

	ActorRotation.Yaw += 0.5;

	SetActorRotation(ActorRotation);
	// ...

Yeah, SceneComponents do.

SceneComponents are ActorComponents, but the opposite is not true. ActorComponents are not SceneComponents, and most components that change the functionality of its owning actor should derive from ActorComponent if it does not need its own transform.

The poster did not specify what their component is derived from, so I can only take a wild guess at the problem. If the GetActorX methods are missing then it is likely inheriting from ActorComponent.

If this is an ActorComponent it does not have a transform. Use GetOwner()->GetActorRotation() and GetOwner()->GetActorLocation() instead.

Some types of components do have a transform however.