| 36 | } |
| 37 | |
| 38 | void AEnemy::Tick(float DeltaTime) |
| 39 | { |
| 40 | Super::Tick(DeltaTime); |
| 41 | if (IsDead()) return; |
| 42 | if (EnemyState > EEnemyState::EES_Patrolling) |
| 43 | { |
| 44 | CheckCombatTarget(); |
| 45 | } |
| 46 | else |
| 47 | { |
| 48 | CheckPatrolTarget(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | float AEnemy::TakeDamage(float DamageAmount, FDamageEvent const& DamageEvent, AController* EventInstigator, AActor* DamageCauser) |
| 53 | { |
nothing calls this directly
no outgoing calls
no test coverage detected