Help with destroying particle system and obstacle

Hi

Could someone help me with a little task? Following on from the last topic I made, which involves following an old Unreal 4 book, there’s a task that’s set that essentially gets you to do something without holding your hand too much. I’m struggling to figure out how best to do it. Basically, I’ve set up a projectile to destroy incoming asteroids. I’ve got the particle system working when the projectile hits one, but I need to destroy the particle system after along with the asteroid. I believe I’ve set the particle system to destroy, but I’m not sure how to destroy the asteroid at the same time. Apart from setting up a whole new Class or Function to do that, which I have one for the player, is there a simpler way of doing it without?

I also have the left mouse button set up to fire.

These are the Blueprints I have set up:

Player Controls:

Asteroid that damages and kills the player:

Obstacle Class the Asteroid is inherited from (these nodes probably don’t need to be there; I think these were from experimenting):

Plasma Projectile:

Thanks

I’ve even tried creating a new function that destroys the asteroid, much like how the player has one for taking damage and then getting destroyed. Sadly, it doesn’t work and gameplay crashes with an error. :-\

Okay. Turns out it was a simple enough fix, though it would have been nice for someone to have let me know. :unamused: :confused:

Looks like I was only calling Destroy Actor on the projectile itself and needed to hook up As Asteroid from Cast to Asteroid to the Target of DestroyActor as well. The more you know…