# Making a particle attract to a player

**URL:** <https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442>\
**Category:** FX\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 3, 2015, 1:20am UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442 "2015-08-03T01:20:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [August 3, 2015, 1:20am UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442/1 "2015-08-03T01:20:36Z")

</div>

I have a coin burst particle effect that generates from a pickup and I am trying to work out the best way to get the particles to go into the player after they have burst. I have tried the different attractor modules within cascade but have been unable to get it to work as intended.

Everything I have been looking at leads me to think that Point Gravity is the way to go but it doesn’t seem to attract to the player’s world location when I set the vector parameter.

---

<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:** [August 15, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442/2 "2015-08-15T13:52:48Z")

</div>

You can set the attractor to work with player positions by setting the attractor to world space (check box) and then make sure you check the box for scaling velocity.

Set the world position of the attractor to an Instance Parameter so you can modify it once the FX are spawned.

> **[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...

In Blueprint retrieve the player world location, and store that as a vector, then pass that vector into the world position of the attractor.

Make sure that the radius of the attractor is large enough to account for the distance from your pawn and emitter actor when spawned. (i.e. make it really massive to test)

This is the exact technique I used for the Zen Garden app we shipped for iOS on iPhone6 when all of the Butterflies flock to your touch input location.

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [November 15, 2015, 10:10pm UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442/3 "2015-11-15T22:10:30Z")

</div>

Hey sorry for the delay, I only just came back to working on this but that did the trick. Ta very much!

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [March 10, 2017, 6:48am UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442/4 "2017-03-10T06:48:47Z")

</div>

in 4.14 there is no option to add a parameter when right clicking on a point attractor module… am i missing something?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_586d8a2c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_586d8a2c](https://forums.unrealengine.com/u/anonymous_user_586d8a2c)\
**Post date:** [March 12, 2017, 5:34am UTC](https://forums.unrealengine.com/t/making-a-particle-attract-to-a-player/327442/5 "2017-03-12T05:34:49Z")

</div>

I was just struggling with the Point Attractor to use a Vector Perimeter for location, and I couldn’t figure out why it wouldn’t work for well over an hour. It appears that you MUST set “DPM\_Direct” in all 3 settings under Param Modes for it to accept a new location. If you don’t, it will always head for 0,0,0 even if you setup the Vector Parameter under your Particle FX in the actor correctly. It says so in the guide (way at the bottom!), but for some reason, even after looking at it 10 times, I kept missing that part. SUPER IMPORTANT!
