How to make a mesh created at runtime use an anim blueprint?

  1. In the character bp a new actor is spawned, called M9, a child of the weapon base class.
  2. In the M9 actor’s construction script, a new 3d mesh is assigned. The mesh itself was created with add component, but the mesh field was left empty.
  3. The whole animation blueprint fails to start. Runtime errors for the first second or so, probably because the weapon does not exist yet?

How to make a 3d mesh that was created during runtime, use an animbp?

Note: The anim bp and all other logic works on meshes that were setup before runtime.