Ai Controller Not Valid after Ai Respawn

I’m working on creating a save system for my game, and when the game loads, the ai characters need to be spawned using the data saved. The issue that I’m having is that when the characters respawn, the controller is invalid, resulting in a failed casting when trying to cast to the ai characters.

I’ve taken a look at this which is basically the exact same issue, but the solution was extremely vague. “Solved: Need to be place node Possess after Spawn Actor :sweat_smile: :grinning:”. The possess actor node doesn’t connect well to the nodes before it, so I’m not sure what to put in for inputs, and when I’ve made a guess [x], the casting still fails.

Everything but the casting is working, but I know the failed casting will probably eventually cause problems in my game. Hopefully this creates a good enough picture for understanding the situation. Thank you!

Well I am not sure what is going on however what I know is the order can be problematic.

On the tick when begin play game data is loaded.

Data is loaded and actors being spawned.

On the same tick I feel you are casting to spawned actors which they are not yet possessed.

What I would suggest do use a delay until next tick to cast, I am hoping that it would work since on next tick they would be having a controller.

PS: Also make sure that