Here is my code sample:
AAIController* AIController = Cast<AAIController>(GetController());
if (AIController)
{
AITask = UAITask_MoveTo::AIMoveTo(
AIController,
FVector(370, -370, 0),
NULL
);
if (AITask)
{
UE_LOG(LogTemp, Warning, TEXT("ybx--Begin AIMoveTo, AITask success"));
}
}
the return value AITask is not null, but the ai not move at all !!
and if i call this function in bluepirnt, the ai move correctly!
so, i’m really don’t know…
any suggestion would be great appreciated!