You can’t get bones like that because skeletal mesh animations are threaded. You’ll have to find the skeletal mesh’s proxy before you get access to any bone data.
Thank you for your answer. So how to make an AI bot to aim at my character player? How to rotate an AI bot to face my character player? Of course, in C++, not in blueprints.
PoseableMeshComponent.And then you can manipulate the bone using this function:
PoseableComponent->SetBoneRotationByName(BoneName, Rotation, EBoneSpaces::ComponentSpace);
Thank you. Is it enough for making an AI bot to aim at my character. Just aim offset. The problem is that I made a few aim offset animations in Blender and it doesn’t work as it should.
By the way, guys, maybe you know how to make strafe animations in Blender.