Dynamic Actor Attachment

I can not tie an actor to a component of another actor during the game.
If I attach an actor to the function BeginPlay, then everything works as it should. But if I attach by pressing a key, then the actor simply becomes motionless.

This is the code:

collisionBody->SetSimulatePhysics(false);
AttachToComponent(parentSceneComponent, FAttachmentTransformRules(EAttachmentRule::SnapToTarget,EAttachmentRule::SnapToTarget,EAttachmentRule::SnapToTarget,true), socketName);

If the actor is initially disabled physics simulation, then everything is fine

Attachments do not work when the component is simulated. This is by design of the engine. There is no work around or way to change it, unless you want to dive into the engine code.

Is there another way to attach an actor during the game?
I want to make a backpack that can be thrown away and picked up. Can eat a method as that on another it to implement?