# Actor causes other Actor to make noise after its destroyed.

**URL:** <https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, question, Blueprint\
**Created:** [June 11, 2023, 3:32pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949 "2023-06-11T15:32:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Villager-13](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villager-13/32/574804_2.png) [@Villager-13](https://forums.unrealengine.com/u/Villager-13)\
**Post date:** [June 11, 2023, 3:32pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/1 "2023-06-11T15:32:47Z")

</div>

I have a metal detector in my project, and I have something when the detector beeps when close enough, but should stop beeping when I dig it up. However, it still beeps when I dig up the object and have it destroy itself.

How do I have it so it beeps when close, but stops beeping when dug up and destroyed?  
(Item detected and dug up).

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/8/8381daba3736beb38e90da90dcb57339427eb64c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/0/fc01a83fc80b0ecd0731eb1db3e14af16bd30b6e.png)

(Metal Detector)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/9/399b2cc4ef5b419b44453c1ef0329bf32f33bc03.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/0/5a03bb388fa0aec9dabff5b1faecb39d0b06fc54.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 11, 2023, 7:02pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/2 "2023-06-11T19:02:56Z")

</div>

I saw your post 🙂

It’s definitely not a great answer if you have a lot ( more than 50 ) of objects, but a quick fix is to move these return lines back to here

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/d/dad5cd610e861e625d00239d99aa6b9f96dd1600.png)

---

<div class="post-metadata">

**Author:** ![Villager-13](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villager-13/32/574804_2.png) [@Villager-13](https://forums.unrealengine.com/u/Villager-13)\
**Post date:** [June 11, 2023, 9:20pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/3 "2023-06-11T21:20:41Z")

</div>

Thanks once again. I didn’t realize I had this issue until I said I won’t try to ask for anything more, then I got scared to ask and decided this was easier. 😅

If I was to improve on this (adding more scannable items exceeding 50), do you know of anything that could help me expand on this system in the future?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 12, 2023, 5:45am UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/4 "2023-06-12T05:45:02Z")

</div>

No need to be scared :), but it’s also a good idea to start new threads. That way, you get different people answering.

The problem, is that we keep calling ‘get all actors’, because there’s no point, once you have done that at the start, but we used it to get rid of the one that had been destroyed.

Ideally, go back to what you had before, and when one is destroyed, remove it from the array 😉

So the item blueprint needs to tell the detector blueprint it was destroyed. For that, you’ll need direct blueprint communication

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/9/9e97c54fbb743ecee1b9d3e4cf30cabc8f5cb9ac.jpeg "HTF do I? Blueprint to Blueprint Communication") ](https://www.youtube.com/watch?v=6IOgkWv1lEY)

---

<div class="post-metadata">

**Author:** ![Villager-13](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/villager-13/32/574804_2.png) [@Villager-13](https://forums.unrealengine.com/u/Villager-13)\
**Post date:** [June 12, 2023, 8:58pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/5 "2023-06-12T20:58:46Z")

</div>

I’ll look into it, thanks so much!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 12, 2023, 8:59pm UTC](https://forums.unrealengine.com/t/actor-causes-other-actor-to-make-noise-after-its-destroyed/1195949/6 "2023-07-12T20:59:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
