Compare commits
No commits in common. "a31e00c6e46e4ddb8ecab62f15c752878bf6a5e0" and "390b50547b580788bd3c88632b87616ccaded12a" have entirely different histories.
a31e00c6e4
...
390b50547b
@ -44,15 +44,12 @@ void AEnemyCharacter::OnDamaged(FDamageInfo damageInfo)
|
||||
|
||||
void AEnemyCharacter::OnDeath(FDamageInfo damageInfo)
|
||||
{
|
||||
// TODO: Replace pickup spawning with pooling
|
||||
FActorSpawnParameters actorSpawnParameters;
|
||||
actorSpawnParameters.Owner = this;
|
||||
actorSpawnParameters.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
|
||||
actorSpawnParameters.TransformScaleMethod = ESpawnActorScaleMethod::MultiplyWithRoot;
|
||||
|
||||
auto spawnLocation = GetActorLocation();
|
||||
spawnLocation.Z = 75.0f;
|
||||
|
||||
GetWorld()->SpawnActor<AEXPPickup>(EXPPickupTemplate, spawnLocation, FRotator::ZeroRotator,
|
||||
GetWorld()->SpawnActor<AEXPPickup>(EXPPickupTemplate, GetActorLocation(), FRotator::ZeroRotator,
|
||||
actorSpawnParameters);
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,6 @@ void AVampireGameMode::SpawnEnemy()
|
||||
{
|
||||
healthComponent->OnDeath.AddDynamic(this, &AVampireGameMode::HandleOnEnemyDeath);
|
||||
}
|
||||
healthComponent->ResetHealth();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user