I have used Blueprints to make Timelines before and am now trying to figure out how to use them in C++. This particular instance is to build in the swing of a door.
In trying to learn how to use FTimelines I have referred to the following post:
But in my case I get a compile error that doesn’t make a whole lot of sense to me. Below is the code I use:
.h (including the statement before to show that I close it)
// Sets default values for this actor's properties
AElevator(const FObjectInitializer& ObjectInitializer);
FTimeline DoorTimeline;
UFUNCTION()
void UpdateDoorPlacement(float Value);
.cpp (nothing important here yet, but have the function in place so it compiles)
void AElevator::UpdateDoorPlacement(float Value)
{
//yada-yada....
}
The error I get is the following:
Error 1 error C2146: syntax error : missing ‘;’ before identifier ‘DoorTimeline’
This make sense to anyone?