How to Spawn or AddChildActorComponent in construction script via C++

I think you can use spawning it in PostComponentInitiazed

I would like to have a C++ class called ProcContentMaker which has a construction script that creates random child actors.

I would like to use Spawn but Spawn doesn’t work in construction scripts. It seems like AddChildActorComponent is the recommended approach but I can’t that to work. Could someone give an example of how to use that in C++ where the child actor component is randomly selected from an array?

Also, it would be great to know more about AddChildActorComponent. In experimenting with this in blueprint I find that if I have actor A call it in A’s construction script then everything works fine. But if Actor B has a variable pointing to an instance of Actor A in the level and Actor B tries to call AddChildActorComponent on A to add children of A with target as A then it doesn’t work.

What are the restrictions/constraints for AddChildActorComponent?

Thanks,
-X