Why does creating a character from class and creating an AI character from class yield different results at runtime?

i was attempting to get the AIController from a pawn that I found through a hit check - So the correct way of doing this is to cast from the Hit Actor output to Pawn, then Get Controller on the pawn and cast that to an AIController.

I have noticed though that this WILL work when my characters are created with the SpawnAIFromClass node but NOT the SpawnActorFromClass node.

Why is this? shouldn’t both work with a few extra casts?

FYI if I do cast when it’s spawned from the actor node, the pawn is NULL! NULLLLLLLL!!!

The main difference between SpawnAIFromClass and SpawnActorFromClass is that the AI one spawns a default controller class instance for spawned pawn, while the other just spawns an actor and if you want a controller to go along with it you need to spawn it yourself.

–mieszko