Hello, in your header file of your character:
-
#include “PawnSteeringComponent.h” right before the generated.h
-
Create the following uproperty:
UPROPERTY(VisibleAnywhere)
UPawnSteeringComponent* ActorComp;
then. switch to your source file and in your constructor type in the following line:
ActorComp = CreateDefaultSubobject<UPawnSteeringComponent>(TEXT("MyActorCompName"));
-Orfeas