I have a projectile firing at an actor/pawn. How to do you have the pawn register that the projectile hit/came in contact with it?
I know it has something to do with the collision spheres around the projectile and the pawn. But im not sure how.
I tried tagging the pawn’s sphere as ‘Enemy’ then telling the projectile to destroy when it comes in contact with something tagged ‘Enemy’ but that’s not working for some reason?
Is this the proper way of doing this, or is there a better or more widely accepted way?
Then depending on if you want the Pawn or the projectile to register the hits add an overlap event. In this case the hit is registered on the Pawn.
You may want to add a “projectile” object type so you can set all projectiles types to that. You can add a object type from the Project Settings
Set the default response to overlap.
Then in your projectile actor set you collision component’s Object type to the newly created Projectile type and the response to Overlap the same channel your pawn was.