# Niagara Spawn system at location with variable

**URL:** <https://forums.unrealengine.com/t/niagara-spawn-system-at-location-with-variable/236583>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [June 21, 2021, 10:16am UTC](https://forums.unrealengine.com/t/niagara-spawn-system-at-location-with-variable/236583 "2021-06-21T10:16:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0fd6fa7e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0fd6fa7e1](https://forums.unrealengine.com/u/anonymous_user_0fd6fa7e1)\
**Post date:** [June 21, 2021, 10:16am UTC](https://forums.unrealengine.com/t/niagara-spawn-system-at-location-with-variable/236583/1 "2021-06-21T10:16:44Z")

</div>

Hi there,

First of all, I am very new at Unreal and blueprints. I have a background at coding though.

I am trying to spawn a Niagara system at location depending on what key I hit on a MIDI device.

I managed to do something so far.

When the system spawns, I set the spawn rate of the emitter with an user parameter. So when it spawns, the emission start at 0 but right away it starts to emit 300 particles.

I also have a custom event that should set the spawn rate to 0 again when the key on the MIDI device is OFF. But that’s where it gets tricky for me. I managed to kind of make it work. But it works as long as I don’t hit one key then another one and then release the first one.

it works one at a time basically. So I was hopping to find a way to add an ID to the system when it’s spawned so I can later select it again to set the spawn rate to 0 when the key is released. I guess it’s possible? or maybe I should approach this differently?

Hope that makes sense. I attached to this post a screenshot of my blueprint to better understand maybe. (the NiagaraID nodes are just an attempt to create an ID but I actually don’t know how to use it)

 ![blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/a/2a352103136c22ad7f3a915c50d59b0e75864b5c.jpeg)

Thanks
