Hi, I need to create an AI entity that follows a spline in landscape or an other…
How can I do? I’ve tryied to initialize it in C++ class but there is a problem…
I use visual studio 2015 and Unreal Engine 4.10.
In Monster.h I create this variable:
UPROPERTY(EditAnywhere, Category = MonsterSpline)
class USplineComponent* Spline;
and in Monster.cpp I’ve done this:
Spline = PCIP.CreateDefaultSubobject<USplineComponent>(TEXT(“Spline”));
but it doesn’t compile…
why? there is another mode? what can I do? HELP ME PLEASE!!