Attach projectile to actors when hit? (sticky projectile)

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.

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:

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

-W

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?

doesnt work for me

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

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

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

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

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

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.