Hey all,
I’m getting an error back about my OpenDoor.h file, “Missing ‘,’ in Variable declaration specifier,” and I really just can’t see where the mistake is. I’m using 4.14, which hasn’t had any quibbles yet. Here’s what my header file looks like. (Also, unrelated, can anyone tell me how best to present my code here on the forums? What do I need to do to make sure it shows up appropriately?)
#pragma once
#include “Components/ActorComponent.h”
#include “OpenDoor.generated.h”
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnOpenRequest);
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UOpenDoor : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component’s properties
UOpenDoor();
// Called when the game starts
virtual void BeginPlay() override;
void OpenDoor();
void CloseDoor();
// Called every frame
virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
UPROPERTY(Blueprint Assignable)
FOnOpenRequest OnOpenRequest;
private:
UPROPERTY(EditAnywhere)
float OpenAngle = -90.f;
UPROPERTY(EditAnywhere)
ATriggerVolume* PressurePlate = nullptr;
UPROPERTY(EditAnywhere)
float DoorCloseDelay = 1.f;
float LastDoorOpenTime;
AActor* Owner = nullptr;
float GetTotalMassOfActorsOnPlate();
};