AIController Not working on spawn actor

I am following the unreal engine tutorial on MOBA creep and I’m stuck on the part 3 where they change SpawnAI for a Spawn actor from class cause the minions have to set default lane and team but the issue is the AI Controller are not working at all… I do print string on begin play and event tick in AIController and nothing print out on the screen…
I need to get it work to run the behavior tree. I have try to change the setting in minion blueprint (Auto possess ai) > to placed in world or spawned… but it doesn’t work. Anyone know what is going on here?

(UPDATE) I had to use SpawnDefaultController on the SpawnActorFromClass. now it work well.

thankyou, in c++ code, use pawnPtr->SpawnDefaultController.

1 Like