How to programatically spawn some pawns and attach controllers to them?

I changed pawn to character and it worked. But thats so weird… oh well