# How would i have a particle play, when i walk past a certain point?

**URL:** <https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623>\
**Category:** FX\
**Tags:** unreal-engine, level, UE4, question\
**Created:** [September 7, 2016, 1:20am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623 "2016-09-07T01:20:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 1:20am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/1 "2016-09-07T01:20:46Z")

</div>

So, i have this snow level built and i was wondering how i would walk past a specific point (IE a doorway) and have a particle system play, as (maybe a trigger box?) is triggered. I tried looking this up, to no avail.

If anyone can help, that would be great! Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![DarthWayne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarthWayne](https://forums.unrealengine.com/u/DarthWayne)\
**Post date:** [September 7, 2016, 2:06am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/2 "2016-09-07T02:06:05Z")

</div>

You can create a class blueprint with a box collision as component. On this component register the **OnComponentBeginOverlap** event. In this event first check if it was triggered by the player (actor should have player tag). If so spawn the particle system using the **SpawnEmitterAtLocation** function. After placing the blueprint in your level double click on the trigger to move it separately. That should be it.

Edit: Also, if you want your particle system to stay, you could just change its visibility instead of spawning it. Probably the cleaner way in that case.

 ![105959-spawnparticlesystem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/3/5f31356577d2ff44e02c3a6555c67421a8bfbf5a.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 3:05am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/3 "2016-09-07T03:05:20Z")

</div>

Thank you! This will certainly help, i appreciate it greatly!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 3:06am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/4 "2016-09-07T03:06:55Z")

</div>

My next question is do i change the “Emitter Template” to the particle i want?

---

<div class="post-metadata">

**Author:** ![DarthWayne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarthWayne](https://forums.unrealengine.com/u/DarthWayne)\
**Post date:** [September 7, 2016, 8:49am UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/5 "2016-09-07T08:49:33Z")

</div>

Just click on the dropdown to select the particle system you want to spawn. You can as well use a variable if you prefer that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 1:24pm UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/6 "2016-09-07T13:24:41Z")

</div>

Thank you!! Now, sorry to extend this but how would i get a sound to play as i walk past the point?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/7 "2016-09-07T15:26:18Z")

</div>

But before you answer that, i seem to have an issue. “get world location” and “default scene root” seem to not exist. I only have “get world origin location”

---

<div class="post-metadata">

**Author:** ![DarthWayne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarthWayne](https://forums.unrealengine.com/u/DarthWayne)\
**Post date:** [September 7, 2016, 7:29pm UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/8 "2016-09-07T19:29:52Z")

</div>

You can play a sound using the PlaySoundAtLocation function. If your particle should be moving there is a function that also attaches the sound. Something like PlaySoundAttached I think. Just filter the list of functions by “sound” and you should see a lot results.

Get WorldLocation is function you can call on any scene component of your blueprint (class blueprint not level blueprint!). By default the root object of a blueprint is called DefaultSceneRoot.

If you are not familiar with blueprint yet there are a few good official and unofficial tutorials on YouTube. Like [this one](https://youtu.be/URG3YNsUCQ8?list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE) for example.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_101f137b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_101f137b](https://forums.unrealengine.com/u/anonymous_user_101f137b)\
**Post date:** [September 7, 2016, 9:50pm UTC](https://forums.unrealengine.com/t/how-would-i-have-a-particle-play-when-i-walk-past-a-certain-point/369623/9 "2016-09-07T21:50:10Z")

</div>

Thank you for being so patient, my next question is what class should i choose? Actor, pawn, player controller, etc? which one of those and the others should i choose from? And i will check that tutorial out, thank you!
