Projectile colliding with player and how to get rid of it?

If you want the an actor to shoot a projectile then have the actor have a function to fire:

  • check if the player has ammo before firing (I see you are using an ammo counter), if you have ammo reduce by 1.
  • it spawns the projectile at a location: usually a location relative on the actor like a gun muzzle etc
  • add the ignore logic to the newly spawned projectile passing in the actor that is spawning the projectile.
1 Like