// Enemy target void Player::SetEnemyDied(Enemy* pEnemy) { if (m_pTargetEnemy == pEnemy) { SetTargetEnemy(NULL); } }
void ASZombieAIController::SetMoveToTarget(APawn* Pawn) { if (BlackboardComp) { SetTargetEnemy(Pawn); if (Pawn) { BlackboardComp->SetValueAsVector(TargetLocationKeyName, Pawn->GetActorLocation()); } } }