The instigator takes no damage…
Other pawns take damage but the shooter does not.
I do not know why, but I want it to be damaged.
-
DamageCauser: Is the pawn ( the shooter).
-
TheOwner: Is a projectile.
The projectile cannot be damaged but I add it to the IgnoreActors array because an empty array causes radial damage to not work. -
The weapon cannot be damage either.
-
The instigator is the controller of the pawn or nullptr:
If the instigator is a nullptr does not fix the problem
TArray<AActor*> IgnoreActors;
IgnoreActors.Add(TheOwner);
UGameplayStatics::ApplyRadialDamage
(
World,
BaseDamage,
Origin,
DamageRadius,
DamageTypeClass,
IgnoreActors,
DamageCauser,
Instigator,
bDoFullDamage,
ECollisionChannel::ECC_Visibility
);
I olso tried to change the last parameter to: ECollisionChannel::ECC_WorldStatic
but this didn’t work either.
Any ideas?
Thank you so much!!