Please Help me i am stuck on Lecture 106 Crypt Raider

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include “CoreMinimal.h”

#include “Components/BoxComponent.h”

#include “Mover.h”

#include “TriggerComponent.generated.h”

/**

*/

UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )

class CRYPTRAIDER_API UTriggerComponent : public UBoxComponent

{

GENERATED_BODY()

public:

UTriggerComponent();

protected:

// Called when the game starts

virtual void BeginPlay() override;

public:

// Called every frame

virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;



UFUNCTION(BlueprintCallable)

void SetMover(UMover* Mover);

private:    

    UPROPERTY(EditAnywhere)

    FName AcceptableActorTag;

    UMover* Mover;

    AActor* GetAcceptableActor() const;

}; My H file

// Fill out your copyright notice in the Description page of Project Settings.

#include “TriggerComponent.h”

UTriggerComponent::UTriggerComponent()

{

PrimaryComponentTick.bCanEverTick = true;

UE_LOG(LogTemp, Display, TEXT("Constructing"));

}

void UTriggerComponent::BeginPlay()

{

Super::BeginPlay();

UE_LOG(LogTemp, Display, TEXT("Tigger Component Alive"));

}

void UTriggerComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)

{

    Super::TickComponent(DeltaTime, TickType, ThisTickFunction);

    AActor* Actor = GetAcceptableActor();

    if (Actor != nullptr)

    {

        UE_LOG(LogTemp, Display, TEXT("Unlocking"));

    }

    else

    {

        UE_LOG(LogTemp, Display, TEXT("Relocking"));

    }

     

}

      void UTriggerComponent::SetMover(UMover* NewMover)

        {

           Mover = NewMover;

        }

       AActor* UTriggerComponent::GetAcceptableActor() const

        {

           TArray<AActor*> Actors;

           GetOverlappingActors(Actors);

           for (AActor* Actor : Actors)

           {

             if (Actor->ActorHasTag(AcceptableActorTag))

             {

               return Actor;

             }      

        }  

        return nullptr;            

} this is my header file 

i am on lecture 106 i am getting this problem when i try to build task from vs code that sam said but in my terminal i get this

D:\Unreal projects\CryptRaider\CryptRaider\Source\CryptRaider\TriggerComponent.h(31): Error: Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘UMover’

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms