I’m trying to make my code compile, but I can’t past this.
I’m using Unreal 4.19.
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include “CoreMinimal.h”
#include “Components/ActorComponent.h”
#include “Engine/TriggerVolume.h”
#include “OpenDoor.generated.h”UCLASS( ClassGroup = (Custom), meta = (BlueprintSpawnableComponent) )
class BUILDINGSCAPE_API UOpenDoor : public UActorComponent
{
GENERATED_BODY()public:
// Sets default values for this component’s properties
UOpenDoor();protected:
// Called when the game starts
virtual void BeginPlay() override;public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;private:
UPROPERTY(VisibleAnywhere)
float OpenAngle = 90.f;UPROPERTY(EditAnyware)
ATriggerVolume* PressurePlate;
};