# How to create an emitter at location where actor is destroyed?

**URL:** <https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163>\
**Category:** Blueprint\
**Tags:** Destroy, actor, particle-emitter, unreal-engine, question\
**Created:** [September 24, 2023, 11:35am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163 "2023-09-24T11:35:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 11:35am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/1 "2023-09-24T11:35:55Z")

</div>

I’m following along with Smart Poly’s beginner guide, and I’m at the portion where he creates a soccer ball that is destroyed after hitting the goal so it can respawn and reset the game.  
I wanted to branch out a little from what he’s done and add a particle effect to the ball when it disappears. The only thing I can manage is to add the emitter at the respawn location instead of the “overlap goal” location.  
I would appreciate any help!

---

<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:** [September 24, 2023, 11:39am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/2 "2023-09-24T11:39:34Z")

</div>

You must have a reference to the ball, otherwise you couldn’t destroy it?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/c/c0c261c62a7c6dd813f0f2854434d7de302bd989.png)

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 11:52am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/3 "2023-09-24T11:52:51Z")

</div>

So I tried that and it didn’t work. Here’s what it currently is because of the tutorial where the particle emits at the goalpost

 ![current](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/d/55dbc2570e60a9de24dded3e87ea919a92ae5068.png)

Here are two alternatives I tried that make the particle spawn at the original location

 ![current1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/1/fb1bd654f3f1b0f3a3e74ea2b67e7e4a381561f9.png)  
 ![current3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/0/f702e2cd4fc150631686825de3eea670ca7f20e8.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:** [September 24, 2023, 11:54am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/4 "2023-09-24T11:54:10Z")

</div>

There it is, pull from here and ‘get actor location’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/c/0bc25a5006588b1f593590afecca74e1aef65d1a.png)

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 11:58am UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/5 "2023-09-24T11:58:54Z")

</div>

![current4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/6/fe6cdab1b52814cd10fa454d032c15c150e7d9c4.png)  
It’s still spawning the emitter at the ball’s starting location.

---

<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:** [September 24, 2023, 12:01pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/6 "2023-09-24T12:01:19Z")

</div>

An… you must be just moving the static mesh, and not the ball actor ( wild guess ).

In which case you need to do something like

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/c/1ac36819e13bc63aa48214d125982f05af3cfe24.png)

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 12:09pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/7 "2023-09-24T12:09:13Z")

</div>

Yes, this is under the ‘goal BP.’ I think it’s getting the location of the ball from where it’s placed in the level instead of where it despawns. I’m using the cast to bp ball, so I thought I was using the actor. un not sure how to get the “target - ball mesh” node to try to set it up like that. it just goes to root component

 ![current7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/3/6e3c0a786c84f33bb89c5c58a344a18cbac422bf.png)

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 12:12pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/8 "2023-09-24T12:12:07Z")

</div>

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/3/2438c0f0541f284d06029158bd639461277049ad.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/3/2438c0f0541f284d06029158bd639461277049ad.mp4)
  
This is consistently what I’m getting.

---

<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:** [September 24, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/9 "2023-09-24T12:52:32Z")

</div>

Can you show me the components inside the ball BP?

It’s probably something like this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/b/26b9467472a5f3c4fe9ea9cc4ef799ec866f9821.png)

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/10 "2023-09-24T19:42:12Z")

</div>

I had discarded all changes I made last night so I could start fresh. I tried adding a sphere collision to it previously, but it didn’t change anything, so for most of the attempts it was just using the simple mesh’s basic collision without a sphere collision component.  
But I’m trying it again with a sphere collision to see if there were any collision settings I could change.  
Only the goal BP has nodes, the event graph for the ball is empty.  
Sorry for the late reply, it was like 5am and I needed to go to bed haha.

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/11 "2023-09-24T19:45:50Z")

</div>

![current8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/b/04b01ebe0fad8403ebe72f194354dbdc68a90533.png)  
 ![current9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/4/ae4043f6d193a99e17eab59c92a07672d05c1529.png)  
I changed it back to about where it should have been last night, and added the sphere collision with the details changed to how I had it before.

---

<div class="post-metadata">

**Author:** ![PhrygianSkittles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/phrygianskittles/32/755149_2.png) [@PhrygianSkittles](https://forums.unrealengine.com/u/PhrygianSkittles)\
**Post date:** [September 24, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/12 "2023-09-24T19:58:21Z")

</div>

It seems to be working now 😅 🫠

So I tried messing with it for a bit (ie adding sphere collision, messing with those settings, adding nodes to bp ball)  
The only other thing I did was delete the default scene root. I didn’t know that would affect spawn locations or anything. I thought it was just there to mark where 0,0,0 was. I guess it was causing the emitter to spawn at those locations though.

Thank you for your time in helping me troubleshoot! Sorry it was something so brainless 😶

 ![current9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/5/075e29a60c0513c6b6d76a15af6e7bc6db572849.png)  
 ![current8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/b/04b01ebe0fad8403ebe72f194354dbdc68a90533.png)

---

<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:** [October 24, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-create-an-emitter-at-location-where-actor-is-destroyed/1310163/13 "2023-10-24T19:58:49Z")

</div>

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