# Cant assign socketname in C++ for a static mesh

**URL:** <https://forums.unrealengine.com/t/cant-assign-socketname-in-c-for-a-static-mesh/129617>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 6, 2019, 9:48pm UTC](https://forums.unrealengine.com/t/cant-assign-socketname-in-c-for-a-static-mesh/129617 "2019-08-06T21:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AsmundSchei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AsmundSchei](https://forums.unrealengine.com/u/AsmundSchei)\
**Post date:** [August 6, 2019, 9:48pm UTC](https://forums.unrealengine.com/t/cant-assign-socketname-in-c-for-a-static-mesh/129617/1 "2019-08-06T21:48:26Z")

</div>

Hello, I try to assign a static mesh to a socket, but I cant get it to work. I attached the mesh to the spinebone in the static mesh class, but its still in the air after I killed the AI.

Here is what I do:
