Projectile be destroyed by other projectile

What I want to do is to have a specific projectile be destroyed by another specific projectile.

I set up 2 projectiles (Projectile A and B) and they have scripts for when they touch certain projectiles (Projectile C or D), they get destroyed.

I also put scripts on the 2 other projectiles (Projectile C and D) that any projectile they touch gets destroyed. It’s not the scenario I want but I just wanted to test this too.

Expected Result: Projectiles A/B gets destroyed when they touch projectiles C/D.
Actual Result: Projectile C is the only one that gets destroyed in any interaction.

The script for projectile C would be fine if I want the projectile to be destroyed if it touches any other projectile, but I want the projectile to be destroyed by a specific projectile, not just any.

Link to test game: https://www.modd.io/play/fw3vdRzK6

2 Likes

are you asking for help or talking about it?

2 Likes