# Destroy Agents with Trigger device

**URL:** <https://forums.unrealengine.com/t/destroy-agents-with-trigger-device/1784530>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 3, 2024, 12:08am UTC](https://forums.unrealengine.com/t/destroy-agents-with-trigger-device/1784530 "2024-04-03T00:08:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MelodyApe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MelodyApe](https://forums.unrealengine.com/u/MelodyApe)\
**Post date:** [April 3, 2024, 12:08am UTC](https://forums.unrealengine.com/t/destroy-agents-with-trigger-device/1784530/1 "2024-04-03T00:08:57Z")

</div>

I am trying to destroy a ball from a ball spawner when the ball activates a Trigger, the problem is I can’t seem to figure out how to destroy it, since its an ?agent, the method Destroy does not exist, and I can’t use the Dispose method since its not a prop either.

if(ValidAgent := Agent?){  
ValidAgent.Destroy()  
}

Even this is one of the ways I have been trying to make this happen, but I haven’t found anything regarding how to do this.

If anyone has any ideas I would appreciate it.

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [April 5, 2024, 6:07am UTC](https://forums.unrealengine.com/t/destroy-agents-with-trigger-device/1784530/2 "2024-04-05T06:07:50Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/a/1ca3ac4099c90a7f1713cc708c68a9eadc664d04.jpeg "How to Destroy a Static Mesh Ball in UEFN") ](https://www.youtube.com/watch?v=lJyND7IlyeA)

Does this help?

---

<div class="post-metadata">

**Author:** ![MelodyApe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MelodyApe](https://forums.unrealengine.com/u/MelodyApe)\
**Post date:** [June 12, 2024, 9:48pm UTC](https://forums.unrealengine.com/t/destroy-agents-with-trigger-device/1784530/3 "2024-06-12T21:48:16Z")

</div>

Sorry for the late reply, this solution works, but the reason for my question was that I wanted to destroy the Ball specifically through code by detecting the ball with a Trigger. This was because I wanted the player to destroy the ball when they pressed a certain key, but only if the ball was within a certain Area. I was using a trigger to detect the ball’s entry and another one for the exit, but I guess I could have used a mutator zone for this as well. I still don’t know how to destroy the Ball with verse Lol, but ty for the reply 🙂
