Hello everyone I have a problem, I can’t find a way to add an event when the AI reaches the nav link can someone help me?
#pragma once
#include "CoreMinimal.h"
#include "NavLinkCustomComponent.h"
#include "NavLink_NPC.generated.h"
/**
*
*/
UCLASS(ClassGroup = (Navigation), meta = (BlueprintSpawnableComponent))
class STRANGENEIGHBOR_API UNavLink_NPC : public UNavLinkCustomComponent
{
GENERATED_BODY()
public:
UNavLink_NPC();
protected:
virtual void OnRegister() override;
UFUNCTION()
void HandleSmartLinkReached(UObject* MovingActor, const FVector& DestinationPoint);
public:
};
#include "NavLink_NPC.h"
#include "NavigationSystem.h"
UNavLink_NPC::UNavLink_NPC()
{
}
void UNavLink_NPC::OnRegister()
{
Super::OnRegister();
}
void UNavLink_NPC::HandleSmartLinkReached(UObject* MovingActor, const FVector& DestinationPoint)
{
}