Hot to Spawn multiple AI characters when using Behavior tree
I'm able to spawn a character class and get Behavior Tree running fine. The image below is where I'm doing this in the level BP. It appears that if I add in a loop in this level BP and attempt to spawn more than one the cast to AI control fails. Am I supposed to do the last steps multiple times? Like, Spawn Defualt controller, Cast to AI control, and Behavior Tree only need to run once?
So I guess my question is - Do character class copies use the same AI controller referenced in their defaults? Also, does behavior tree run once and then manage the group? or would there be multiple behavior trees running?
asked Apr 12 '14 at 01:27 PM in Blueprint Scripting
Bah, The problem appears to be that my random location in radius was causing the Cast to Ai Control to fail sometimes. So instead I broke out the vector and only randomized the X/ Y axis and did away with all the arrays. I was clearly over thinking it. Now it just does a loop while the number of spawns is less than whatever.
answered Apr 12 '14 at 03:30 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here