Destroy an actor using another actor

There are many ways to achieve what you want. I would advise looking into event dispatchers or blueprint interface.
Also I would advise to look how actor casting works in bp.


some nice tutorials to get you started

Hi! Today I tried to create a wall and a switch to destroy the wall. The switch is a blueprint actor with a simple sprite with a box collision, the wall is another blueprint actor that consists in a green square.
My goal is: when the player hits the switch (overlapping the box) the wall is destroyed (or vanished). I tried to cast the wall inside the switch to use “destroy actor” but it didn’t work. Any ideas?

The “get all actors of class” resolves the problem! Thanks!