Spawn AIController

Hi im trying to spawn an AIController with C++ but the editor crash when execute the instruction SpawnActor . Any idea? its for make a AI moves when is spawned, if anyone give another idea it will be helpful (for example how to use SpawnAIFromClass).
Thank you!

Eyo,
Maybe not the answer you wanted but check the crash report. It might give you some hint on why it crashes.
Sometimes it copypaste itself on crash so just boot up good old Notepad and paste! :slight_smile:

Oh, and also.
Normally the Actor that you Spawn has an AI controller attached to it. So check the settings in the Pawn BP.