I’m currently working on a choke animation where my AI character grabs the player by the neck. I have successfully attached the player to the AI’s skeletal mesh using AttachComponentToComponent
on the socket (LeftHandSocket).
The issue comes when I try to detach the player.
I’ve tested both:
-
DetachFromComponent
(from the skeletal mesh) -
DetachFromActor
In both cases, the player does get detached, but they remain stuck in mid-air and cannot move.
Here’s the flow I’m using:
Attachment:
-
Attach player’s skeletal mesh to AI’s hand socket.
-
Disable player collision + set movement mode to None.
Detachment:
-
Play Animation on AI
-
Detach from Component/Actor (tried both) from Character SKL mesh (Keep World Rules)
-
Set Actor collision: True
-
Movement Mode: Falling/Walking
Expected: The player should fall to the ground or regain movement.
Actual: The player remains frozen in mid-air.
Question:
-
Is there a proper way to reset the player’s movement mode and collision after detaching from the AI?
-
Or is there a better approach for handling attach/detach during grab animations?
Any help or example setups would be greatly appreciated!
Thanks in advance!