How do the proper projecitr collision?

As you can see, I tried to implement piercing system, the bullet should damage enemy once, and then keep flying, untill he loose all of his pierce points.
But if I do it without “triggered once” projectile deal damage EVERY frame it is colliding with the enemy.
But if I do with the “triggered once” script will work only once per SCENE, making it basically imposible. Sometimes it work properly, but now it is doesn’t.
I tried use “for each enemy/projetile” function, but this doesn’t affect anything.
I pretty sure it is bug, but I don’t know how to recreate this bug, because it random, and don’t depends on anything.

Imagine you have wallet
I take it away from you and throw it into active volcano
And now you want to buy pizza so you want to subtract from your wallet 10$

Can you? Since i took away your wallet and it ended in volcano?
You may think that is very strange question to ask regarding your issue
But before you judge i want you to look at this

BTW
This is chain attack logic
But same principal would be used for damage enemy only once

1 Like

Damn, I’am such a inattentive
But I have an excuse, I worked on the project for about 8 hours straight, and I kept switching between like 5 features constantly while listening misogynistic podcasts, which is maybe symptoms of poorly developed ADXD
Anyway, thank you very much, I will use your chain attack guide, I found it very helpful

1 Like