MCPcopy Create free account
hub / github.com/DruidMech/UE5_TheUltimateDeveloperCourse / Tick

Method Tick

Source/Slash/Private/Enemy/Enemy.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void 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
52float AEnemy::TakeDamage(float DamageAmount, FDamageEvent const& DamageEvent, AController* EventInstigator, AActor* DamageCauser)
53{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected