I am trying to call this function from my Player Controller at BeginPlay(). But after calling it, the spawned pawn does not have a valid AI Controller assigned. The AI Controller is created in the world but it not registering with the pawn.
No matter what sequence I try, doing an assertion on the Pawn’s controller always fails: