void AAIController::PostInitializeComponents() { Super::PostInitializeComponents(); if (bWantsPlayerState && !IsPendingKill() && (GetNetMode() != NM_Client)) { InitPlayerState(); } }
void AAIController::PostInitializeComponents() { Super::PostInitializeComponents(); if (bWantsPlayerState && !IsPendingKill() && (GetNetMode() != NM_Client)) { InitPlayerState(); } #if ENABLE_VISUAL_LOG TArray<UActorComponent*> ComponentSet; GetComponents(ComponentSet); for (auto Component : ComponentSet) { REDIRECT_OBJECT_TO_VLOG(Component, this); } #endif // ENABLE_VISUAL_LOG }