Hi,
As part of a little debugging I added a couple of UE_LOG lines within the TickNode method;
if(AIController->LineOfSightTo(PlayerPawn))
{
UE_LOG(LogTemp, Warning, TEXT("Has line of sight"));
OwnerComp.GetBlackboardComponent()->SetValueAsVector(GetSelectedBlackboardKey(), PlayerPawn->GetActorLocation());
}
else
{
UE_LOG(LogTemp, Warning, TEXT("Lost line of sight"));
OwnerComp.GetBlackboardComponent()->ClearValue(GetSelectedBlackboardKey());
}
Nothing appears in the log, yet the behaviour is as would be expected, e.g. the values are being set/cleared etc. Is it not possible to output messages from the services, or, does something else need to be enabled first to do so?
Any help appreciated