DebugCreatePlayer 1- Where is this created?

How do I find out the logic used behind this console command? Can I access the code, if so where would this be stored?

DebugCreatePlayer is an exec function that can be found in GameViewportClient.cpp

Thanks very much, this would be an external dependency? Where would the .cpp file be found I can only find the .h file.