# Spawn a system with dynamic 'lifetime' length

**URL:** <https://forums.unrealengine.com/t/spawn-a-system-with-dynamic-lifetime-length/270232>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [January 5, 2022, 1:06am UTC](https://forums.unrealengine.com/t/spawn-a-system-with-dynamic-lifetime-length/270232 "2022-01-05T01:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CupKake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CupKake](https://forums.unrealengine.com/u/CupKake)\
**Post date:** [January 5, 2022, 1:06am UTC](https://forums.unrealengine.com/t/spawn-a-system-with-dynamic-lifetime-length/270232/1 "2022-01-05T01:06:54Z")

</div>

Hello,

I’m using Spawn Attached System to attach various particle FX to a character.

I need edit the ‘lifetime’ property of the system every time I spawn it.

How can I pass a float to the particle system to set the lifetime when I spawn it?

Thanks!

---

<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:** [January 5, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/spawn-a-system-with-dynamic-lifetime-length/270232/2 "2022-01-05T15:34:49Z")

</div>

Make a float user variable for the lifetime:

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

You can set it from blueprint

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/1/21beb92aaab05f34065fe0e84e39ea2dde47f6c0.png)

---

<div class="post-metadata">

**Author:** ![CupKake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CupKake](https://forums.unrealengine.com/u/CupKake)\
**Post date:** [January 7, 2022, 2:28pm UTC](https://forums.unrealengine.com/t/spawn-a-system-with-dynamic-lifetime-length/270232/3 "2022-01-07T14:28:06Z")

</div>

This worked perfectly, thank you!
