# Destroy all objects that pass a certain point on Z axis?

**URL:** <https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172>\
**Category:** Blueprint\
**Tags:** Destroy-Actor, unreal-engine, UE4, Blueprint, question\
**Created:** [March 29, 2018, 2:06am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172 "2018-03-29T02:06:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 2:06am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/1 "2018-03-29T02:06:07Z")

</div>

I’ve been at this for a while, and I can’t figure out how to do this. I’m making a game where objects fall off the edge. I want to despawn or destroy those objects when they get below something like -100 z value. All the objects that fall belong to a certain blueprint class if that helps. I’m so confused. Thanks in advance. I really appreciate it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 2:07am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/2 "2018-03-29T02:07:46Z")

</div>

By the way, for anyone trying to help, I understand how break vector and get the z location and make that part of a branch statement. I just can’t figure out how to destroy the actors after they meet the condition though.

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [March 29, 2018, 2:30am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/3 "2018-03-29T02:30:43Z")

</div>

There is “Kill Z” in World settings, it will destroy any dynamic object that passes certain threshold on Z axis. Would it help?

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 29, 2018, 2:33am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/4 "2018-03-29T02:33:02Z")

</div>

if your not going to have anything below that level go into your world settings which is usually in the same area at the details panel and set the killz to the value you want. this should cause any actor that goes below the specified z value to be destroyed.

 ![235464-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/c/cfc142c96c844a77155b3f1fd7f22de84570ef42.png)

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 29, 2018, 2:35am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/5 "2018-03-29T02:35:15Z")

</div>

beat me to it haha it worked with a cube when i just tested it

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [March 29, 2018, 2:38am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/6 "2018-03-29T02:38:06Z")

</div>

Haha, have been testing it as well. Looks like it works only with things that are physics enabled. Tried to position static objects below it, and they just stay there. Learned some new stuff myself today 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 2:57am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/7 "2018-03-29T02:57:10Z")

</div>

Thank you so much! This was incredibly helpful!!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 2:57am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/8 "2018-03-29T02:57:47Z")

</div>

Thanks so much!!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 3:10am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/9 "2018-03-29T03:10:06Z")

</div>

Hey guys, I tried it, and it isn’t working. Upon googling how it works, I believe that the killz option is specifically to kill player characters and npcs if they fall off the edge of the map. I just tried it at several different levels and it isn’t despawning the blueprint object.

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 29, 2018, 4:22am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/10 "2018-03-29T04:22:29Z")

</div>

How big of an area are you working with? You could create a volume or somehing similar and destroy any actor that overlaps it

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4414680](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4414680](https://forums.unrealengine.com/u/anonymous_user_c4414680)\
**Post date:** [March 29, 2018, 7:23am UTC](https://forums.unrealengine.com/t/destroy-all-objects-that-pass-a-certain-point-on-z-axis/421172/11 "2018-03-29T07:23:50Z")

</div>

It’s not very big. That’s what I ended up doing. I made a trigger box and “on overlap” was “destroys other object”. Thanks for everything guys 🙂
