Fixed Sphere Component not Despawning After Using OM
This commit is contained in:
parent
6bcc703974
commit
56df964103
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b6a5543ffe1a37190e943bef495c0b5c55b3170e3609ac120b2b0197825e858d
|
||||
oid sha256:5af4fcb65090d7e479af3da106bf123a1282a271ff955a9c739e901b15550f74
|
||||
size 43745
|
||||
|
@ -91,6 +91,7 @@ void AOverloadModule::ExplodeClosestAliveEnemy()
|
||||
if (EnemiesInRadius.IsEmpty())
|
||||
{
|
||||
DisplayFailedToFindTarget();
|
||||
SphereCollision->DestroyComponent();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -100,6 +101,7 @@ void AOverloadModule::ExplodeClosestAliveEnemy()
|
||||
if (EnemiesInRadius.Num() < 2)
|
||||
{
|
||||
SpawnExplosiveOnActor(ClosestEnemy);
|
||||
SphereCollision->DestroyComponent();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -114,6 +116,7 @@ void AOverloadModule::ExplodeClosestAliveEnemy()
|
||||
}
|
||||
|
||||
SpawnExplosiveOnActor(ClosestEnemy);
|
||||
SphereCollision->DestroyComponent();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user