Assign a camera at runtime

How do I achieve the following?

  • Create camera actors with prespecified viewpoints that can be attached at runtime. E.g. one camera, overhead, would be facing down towards the actor from a specified height. When the actor moves, the camera moves too.
  • Attach such a camera at runtime to a pawn using the editor:I have a list of cameras and a list of pawns in listboxes, and I can select a camera and a pawn: the camera is then attached to the pawn, and follows it.

I’m using preferably C++.