C++ Destroy Actor on Projectile Hit

I have function to destroy Actor on hit, but it works only with my charachter touch
I want to change it to projectile hit (FPS Template).
How may I do this?

@Lordderon
The condition is only True if otherActor->GetOwner() is Equal to GetFirstPlayerController().
So you need to remove it ( if it can collide with anything ) or add an or and check if GetOwner() is the type of your projectile.

@SolidSk
Thanks for advice. But how should I implement this to code? I’m new in UE4 and don’t understand this

Thath’s it! And I rename all in the code)
Thanks

1 Like