Restore AI characters animation after detach?

Hi, I’m making the third person fixed camera angle game, like resident evil. I was attempting to sync two character animations together (Player Pawn and Enemy AI) in a grapple hold with one another. The only way I could figure out to get the animations synced up in time and position was to have the enemy AI move to a location in front of the player character and the set the rotation of the enemy to the opposite that of the player. After that attaching the enemy skeletal mesh to a socket off the players root before playing the animations for each character. The problem is, after the grapple hold is broken and the character can move around freely, the enemy AI has a messed up movement direction. It will attempt to follow the player while moving backwards and other odd directions. I’m guessing this is because of the rotation being set before the grab or maybe the attach to component messes things up. Either way I tried to store the enemy’s rotation in a variable before the grab and rotation change happens, then setting the rotation back after the characters have been detached. Sadly still the enemy has messed up rotation and movement direction.

Much thanks for any help.

Are you setting rotation to keep world on attach actor to actor? I did a little test scene and the character walks OK after detaching.

On attach i set the enemy character in from of my player character and rotated it towards them then did attach character to character with keep world rotation and keep world position