# How can I change the Initial Location on a ParticleSystemComponent?

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-the-initial-location-on-a-particlesystemcomponent/282707>\
**Category:** FX\
**Tags:** particle-systems, unreal-engine, CPP, question\
**Created:** [May 7, 2014, 8:54am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-initial-location-on-a-particlesystemcomponent/282707 "2014-05-07T08:54:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d71a2fac1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d71a2fac1](https://forums.unrealengine.com/u/anonymous_user_d71a2fac1)\
**Post date:** [May 7, 2014, 8:54am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-initial-location-on-a-particlesystemcomponent/282707/1 "2014-05-07T08:54:46Z")

</div>

Hi, i’m having some trouble finding a way to change the initial location module’s values of the emitter that is on my particle system.  
This is the code i use to create my particle system components, the template is of the created particle system in the editor.

```
 ParticleTemp = ConstructObject<UParticleSystemComponent>(UParticleSystemComponent::StaticClass(), RootComponent->GetOwner());
ParticleTemp->bAutoDestroy = false;
ParticleTemp->SecondsBeforeInactive = 0.0f;
ParticleTemp->bAutoActivate = false;
ParticleTemp->SetTemplate(TemplateSystems[0]);
ParticleTemp->bOverrideLODMethod = false;
ParticleTemp->RegisterComponentWithWorld(GetWorld());
    
ParticleTemp->SetActive(true);
ParticleTemp->AttachTo(RootComponent, NAME_None);
ParticleTemp->SetWorldLocationAndRotation(GetActorLocation(), GetActorRotation());

```

I have been looking through the headers but i cant seem to find where to change the values of the initial location module on the emitter that is in my particle system. Do anyone know how i can get access to the values i’m after?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d71a2fac1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d71a2fac1](https://forums.unrealengine.com/u/anonymous_user_d71a2fac1)\
**Post date:** [May 8, 2014, 12:19pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-initial-location-on-a-particlesystemcomponent/282707/2 "2014-05-08T12:19:49Z")

</div>

I finally got it working, i needed to set the Distribution on the Initial Location to DistributionVectorParameter and then call on that parameter in order to change the values.  
Here is a good tutorial about this topic.

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...
