Spawning/destroying objects issues

hello, I’m trying to make a simple game in which 2 objects when they touch each other get destroyed and respawn again. The problems are:
If I use the “on hit Object1 Event” (for a specific object) than after they respawn the explosion doesnt work anymore since the new objects are not the destroyed ones.
I think I need a custom event but I cant make it work…any suggestions?
I put everything in the Level Blueprint, but im starting to think that is a bad idea…

The level blueprint is actually a really bad idea especially if you’re spawning stuff in later on.

Handling new spawned things in the LBP is pretty clunky and hardly works at all (you have to get all objects of that type and then filter).

Especially object specific stuff (like the collision and explosion) should be done inside of your actor BP itself. Just take “on hit” again. Spawn the explosion, trigger an event which will soonish spawn a new instance of that object and destroy it.

Pretty straight forward. Tell me if you need it a little more in detail. I can set some pictures up real quick if you need them :wink:

EDIT: Just as guideline. Everything which is not a one or two time event or relies heavily on which other objects are spawned in the level and especially interactions between two objects via “overlap” or “hit” should always be in their own blueprint.

Keep in mind that you just crowd your level BP and that this one will only work for this one level. If you want a second one you would have to copy everything (you can copy the level as well but I think you get the point). It’s just cleaner and better organized if you use the graph of each object.

EDIT 2: If you already have a question about exactly this you might wanna simply update that one rather than posting it a second time.

THANK YOU! ok this is the piece of blueprint in the objectBP but nothing happens…
in the first case it was working but just for the first collision.
In the second case it doesn’t work…something in missing in the event hit and ACTOR to Bool part…

Sry uploaded the same screenshot twice lol

The previouses screen shown the ObjectBP that doesnt work at all
This screenshot shows the LEVELBP which works for the first collision and than stop working since refers to the 2 object destroyed and not with newly soawned…

Have you tried if there is any Hit event at all?

You can easily test stuff like that with the “Print String” node. It will print it’s string (on default “Hello”) in the top left corner of your screen.

Because if it isn’t there should be a setting in the “Components” tab. Take whatever is responsible for your collision (either a hitbox or more likely the mesh itself) and check in the defaults of it, if you checked “Fire Hit event” (or very similar. Just search for “hit” in those defaults).