Destroycomponent not working

pic1 and pic2 is my enemy’s blueprint script.
The destroycomponent in pic 2 is not working.

What’s wrong in my script?

pink, green, and black is my bullets.

how can I destroy my enemy when my bullets (pink, green, and black) overlap?

your boolean logic is wrong … in this case, the destroyactor will run if your bullet is pink and green and black …

how can I correct my blueprint??

I want to make the enemy overlap three kinds of bullets(or more)

sorry, my English is not good.

just replace your AND with a OR.

AND = true only if A=1 and B=1 and C=1 …

OR = true if A=1 or B=1 or C=1 …

thank you for answer my Question.

My problem is my playercharacter should shoot 3 types of bullets in order of color(yellow, pink and green), only if the player shoot till the third bullet(green), the enemy will be defeated(destroy).

So it’s more complicated than that :
imo I would do smth like 2 bool variables bYellow and bPink and each overlap :

  • if tag = yellow : set bYellow var to true, bPink to false
  • if tag = pink AND bYellow = true : set bPink to true else set bYellow to false
  • if tag = green and bYellow = true and bPink = true : destroy actor else set bYellow and bPink to false

sorry I try to working on these problems in few days but I really confused …

(green → pink → yellow) = destroy(X)

(yellow → pink → green) =destroy(O)

I want to follow the step but I can’t.

This code may do what you want for (green → pink → yellow) = destroy(X) :

http://img11.hostingpics.net/pics/326925Sanstitre1.png

[http://img11.hostingpics.net/pics/326925Sanstitre1.png][2]

thank you for answer my question.

it do work thank you!
I appreciate.

Mark this as answered if you are happy, it’s better for tracking :wink: