How to attach a mesh to a character?

hi,
I look for a way to attach a mesh to my first person pawn when a enter a triggerbox, and let it go again when I walk into another triggerbox.
so when I walk around the mesh is attached to myself until a enter another triggerbox.
anyone have an idea?

Howdy!

You could try using Sockets:

https://docs.unrealengine/latest/INT/Engine/Content/Types/SkeletalMeshes/Sockets/index.html

Have a look, this will allow you to attach the mesh to a socket on your character.

-W

thanks I will look into that…

Or take a look at this tutorial: :wink:

Yep thanks, that’s exactly what I was looking for…

one more problem… when I attach something to a socket in 3th person view I cannot walk straight anymore always diagonal unitl I detach the object from the socket. anyone have an idea why…

Check your collision settings on the object that you attached to the socket. If it’s set to block all, it might be causing an issue if the object is inside your character capsule.

-W

YES… that was causing the problem
Thanks Wes.

Now my mesh go inside the wall, there is collision on it, if I drop it it falls on the floor, so it doesn’ t go through the floor. but it goes thru walls and other meshes. any idea?

What does the Collision look like on your mesh (not the Pillar)?

I fixed it by setting the collision of my object to block all and set it so that it cannot overlap my pawn when attached.
that works… anyway thanks for helping out.