SpawnActor from Class spawns the mesh but nothing else happens

In my character blueprints the AI is set to wander around the map AND if it’s pawnsensing sees the player it will chase you. The wandering and chasing work if you add the character to the map manually but if the character is added with a Spawn Actor From Class node then the mesh is added to the map but nothing else works.
Event BeginPlay nodes don’t run, Construction script doesn’t run, nothing in its blueprints work.

This is how I am spawning the actor in my map blueprints.

This is the AI characters blueprint.

1 Like

In your AI BP in the details panel you have to set the Auto Posses AI to “Placed in World or Spawned”.
image

3 Likes

I think that was a huge step in the right direction but I’m still getting problems. In my AI controller whenever I try to cast the the controlled pawn it fails.
Apparently this is a semi common issue like this post right here.
They claim to have been able to fix the problem but I for the life of me can’t figure out what the heck he is talking about in his solution.