How To Kill An Actor With A Volume?

Hey all,

Trying to make a volume kill an actor when it touches it but having some problems. I tried using a Kill-Z but I’m striking out. I have actors falling from the sky and I want them to be destroyed when they pass through a certain volume.

Thanks

Hello,

You can set up a simple box collision that destroys any actors that overlap it.

Create a new blueprint, add a Box component, and set it as the root component by dragging it and replacing the DefaultSceneRoot component.

Go into the Event Graph, and on Event ActorBeginOverlap, drag off of the Other Actor pin and place a Destroy Actor node. This will allow the box collision to destroy any actors that it comes into contact with.

Let me know if there are any further questions regarding this setup.

Have a great day

1 Like

Thanks Sean, I think the problem is that I have about 250 of these falling objects and I want one volume to kill any of them that fall into it.

That should work. You can re-use the blueprint if you need it in more than one area, or make it as large as you’d like.

Ok, I understand the creation of the blueprint but then all of my falling pieces would need to be a copy of that blueprint, right? Then I have to place a trigger volume in my level to link the collision to?

With this setup, that won’t be necessary. Create a blueprint called something like “KillVolume”, add a box component to that blueprint, and then set it up as I described in my original post. This way the blueprint is only a box component that you can place anywhere in the level, and when it collides with another actor, the other actor will always be destroyed. Does that make sense?

Hi, I had same problem (I used same solition like Sean L but it wosnt work until I did set-up “collision” in both actor. So try make some set up with Collision.

i have a similar question i have a grenade bp that spawns a collison sphere and kill multiple enemies in the sphere but it doest add to my kill count corectly and when i exit i get a n error about couldnt find certain enemies killing one at a time works fine its only when i kill multiple enemies all of my enemy classes are children of a base bp so i just cast to base enemy and all the children die properly and add 1 to kill count if i kill 4 or any multiples with my grenade its counts maybe 2 and adds a random number to my kill count and i get the error about cant find actor any advice ?