Set Socket Location/Transform?
I can't find the way how to set a socket location or transform. We have GetSocketLocation. So how to Set? And how to set socket rotation?
The socket of my enemy's hand should follow the spine bone/socket of my character.
But no SetSocketRotation.
try to use:
but GetSocketByName() return const value, so you cannot modify EnemyhandR (it is read only).
You may try one of this (I'm not sure if it will work the way you want):
 cast GetSocetByName() to non-const
 create a handler to USkeletalMesh
or override Mesh->SetSkeletalMesh().
Now you can find Socket
 Instead of moving the Socket, you can move the object that is attached to it.
answered Mar 19 '18 at 02:06 PM
This is the code I got:
It works with sockets (sockets rotate), but now I know that I need to do the same not with sockets (it makes no sense), but with bones like spine_03 in the armature. How to get a specific bone in the armature? I need to rotate the bone of the enemy's armature (AI bot) to follow my player character.
Follow this question
Once you sign in you will be able to subscribe for any updates here