# How to script particle systems?

**URL:** <https://forums.unrealengine.com/t/how-to-script-particle-systems/279617>\
**Category:** FX\
**Tags:** particle-systems, unreal-engine, editor, UE4, question\
**Created:** [April 4, 2014, 12:35pm UTC](https://forums.unrealengine.com/t/how-to-script-particle-systems/279617 "2014-04-04T12:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8943aceb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8943aceb](https://forums.unrealengine.com/u/anonymous_user_8943aceb)\
**Post date:** [April 4, 2014, 12:35pm UTC](https://forums.unrealengine.com/t/how-to-script-particle-systems/279617/1 "2014-04-04T12:35:40Z")

</div>

Is it possible to somehow script or change a particle system? For instance, I would like to change the scale of the spawned particles, depending on the current speed of an actor. This could be used to create a cheaper smoke trail for a missile, by stretching the smoke particles in the direction of the rocket’s movement.

Alternatively, I could of course just always stretch them, independent from the speed, but in that case I would have to change the particles initial speed based on the rocket’s current speed.

---

<div class="post-metadata">

**Author:** ![\_EPIC\_homeRye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_EPIC\_homeRye](https://forums.unrealengine.com/u/_EPIC_homeRye)\
**Post date:** [April 7, 2014, 3:44pm UTC](https://forums.unrealengine.com/t/how-to-script-particle-systems/279617/2 "2014-04-07T15:44:37Z")

</div>

You can use the Size By Speed module with GPU particles to achieve this.

Alternately, you can create a particleParameter for the sizeScale module, and modify the scale using a variable inside of a BluePrint to change the scale of your particles along an axis based on BluePrint logic.

For any of these solutions you will want to use velocity, rectangle alignment, or a mesh emitter.

Info on particleParameters

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
