Spawning AI Doesn't Work Properly?!

(Hello the images are from Gyazo because i have seen that the page got too long if i upload)

So my problem is exactly the same as :

The answer was to set “Auto Posses Ai” to “Placed in World or Spawned” and so i did

I spawn the Ai with the “My_GameMode” at beginplay

I have no Behaviour Tree so i leave it empty i dont know if that is the problem?

But then it spawns the correct AIController but it doesn’t get the “controlled pawn”

why does my own AiController “Wave_AIController” not link with the AICharacter “Wave_AI”??

if i place the enemy in the world it works just fine?!?!!

The controller gets spawned before the pawn so the begin play triggers before possessing the pawn which means GetControlledPawn is Null, you should handle the OnPossess instead like the imag below, or do handle everything in the begin play of the pawn by getting the controller and executing some function on it from the pawn.

thanks didn’t know :wink:

This was the answer I needed. After 4 hours of tearing my hair out. Thank you!

Awesome been racking my head with this problem until I found this thread. Solved the whole thing.