Help with behavior trees and spawning enemies?

I was able to spawn everything in as intended, but the enemies’ behavior tree says “Inactive” while playing in the editor and they just stand there. I thought the AI Controller wasn’t executing its begin play which runs the behavior tree, so I made a function to begin it and called it within the controlled pawn’s begin play, construction script, and event tick, none of which made the behavior tree actually do something. The print statements attached as the first nodes did execute. When I place enemies into the level normally instead of through the “SpawnActorFromClass” function they work correctly. What could be the problem?