# Attach projectile to actors when hit? (sticky projectile)

**URL:** <https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925>\
**Category:** World Creation\
**Tags:** actors, attach, floating, unreal-engine, projectile, question\
**Created:** [June 4, 2014, 12:26am UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925 "2014-06-04T00:26:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chimp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chimp](https://forums.unrealengine.com/u/Chimp)\
**Post date:** [June 4, 2014, 12:26am UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/1 "2014-06-04T00:26:42Z")

</div>

I currently have it so a spear hits an object but if the object falls the spear remains floating in space.  
I’ve read an Attach to Actor node is needed but I’m not having any luck setting it up. Is this setup getting close? (see attached) And if so what do I plug in to the Attach nodes ‘target’ and ‘parent’ so the spear sticks to anything if it moves/falls. eg. the cubes in the first person template or a copy of my character model with a physics asset.![alt text][1]

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![DizzyWes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DizzyWes](https://forums.unrealengine.com/u/DizzyWes)\
**Post date:** [June 5, 2014, 3:11pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/2 "2014-06-05T15:11:19Z")

</div>

Hello,

I’m sure there is another way to do this, but using the FPS template you could modify the projectile Blueprint to something like this:

 ![7808-stickyprojectile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/7/d276347eee472f47dad422249e62c5ec052af51a.png)

The section in yellow was added and stops the projectiles movement once generating a Hit and attaches it to the Hit object.

-W

---

<div class="post-metadata">

**Author:** ![Chimp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chimp](https://forums.unrealengine.com/u/Chimp)\
**Post date:** [June 6, 2014, 5:32am UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/3 "2014-06-06T05:32:31Z")

</div>

Thanks Wes, this works great for the cubes but not so much for a character. I have Owen walking around in my scene and the spear hits him but stops dead as he walks on. What would I need to add for it to stick to him?

---

<div class="post-metadata">

**Author:** ![poky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poky](https://forums.unrealengine.com/u/poky)\
**Post date:** [March 31, 2018, 9:15am UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/4 "2018-03-31T09:15:08Z")

</div>

doesnt work for me

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 31, 2018, 2:31pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/5 "2018-03-31T14:31:10Z")

</div>

what happens with yours? Post screen shots of the set-up and collision properties etc As much as you think is relevant so someone can help

---

<div class="post-metadata">

**Author:** ![poky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poky](https://forums.unrealengine.com/u/poky)\
**Post date:** [March 31, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/6 "2018-03-31T14:40:12Z")

</div>

Wes answer: It works if the actor simulatePhysics enabled. But I don’t want that.  
Look at my image. This works for me. Projectile sticks to anything!

[https://lh3.googleusercontent.com/-0S9dWU18170/Wr-ehCsqdWI/AAAAAAAACT4/3biXOIbzdAcX5SfOZlv27\_AcNu2z-RObwCHMYCw/s0/UE4Editor\_2018-03-31\_16-43-15.png](https://lh3.googleusercontent.com/-0S9dWU18170/Wr-ehCsqdWI/AAAAAAAACT4/3biXOIbzdAcX5SfOZlv27_AcNu2z-RObwCHMYCw/s0/UE4Editor_2018-03-31_16-43-15.png)

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 31, 2018, 2:47pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/7 "2018-03-31T14:47:00Z")

</div>

I am confused. You said “doesn’t work for me” and now you’re telling me it works for you? I thought you were having trouble getting this to work ha

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 31, 2018, 2:51pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/8 "2018-03-31T14:51:51Z")

</div>

yea their bp doesnt attach to the object hit so it would never work with moving objects.

---

<div class="post-metadata">

**Author:** ![poky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poky](https://forums.unrealengine.com/u/poky)\
**Post date:** [March 31, 2018, 3:50pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/9 "2018-03-31T15:50:06Z")

</div>

The first answer doesn’t work! But my solution works!

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 31, 2018, 4:26pm UTC](https://forums.unrealengine.com/t/attach-projectile-to-actors-when-hit-sticky-projectile/284925/10 "2018-03-31T16:26:17Z")

</div>

the first example works as its meant to. in the first one its only meant to stick to physics objects. so its not a work doesnt work its more of a applies to your situation. for example if you wanted a projectile that only attaches to characters then the first one is the way to go. yours doesnt actually attach the projectile to anything so it isnt exactly complete but if it had been it would be suited to sticking to walls. as it is now though yours would have issue sticking to any moving actor such as a character.
