i create a simple ai with BP,AI has character,controller,behavior tree.Everything works well.but when i spawn this ai with “spawn actor from class” or “spawnai from class”,something weird happened.the First Time after AI spawned,AI work well.but the second time,AI didnt work anymore.wo have checked everything about AI.I found every variable is empty in AI’s controller BT,which controller spawned in second time.
the difference between using “spawn actor from class” and "spawnai from class is that when i used “spawn actor from class”,ai didnt work(cant move),when i used “spawnai from class”,ai can work(can move).but the controller is also something wrong however i spawn ai.
Help!!!