So i think i just dont know enough to solve this issue, i think its probably quite simple though, maybe something to do with possession or casting but here it is:
I am spawning an AI that chases the character but stops moving when the character looks at them. Works great, makes the game a little too easy so i decided to spawn more than 1 ai. For some reason when I get to the new ai (there is a maze) the first ai stops moving all together. No interation at all.
I am using pawn sensing on my main character and casting to the AI character to tell them to stop then i have a retriggerable delay that tells them to start moving again (essientially if i stop looking at them) I cant help but think its casting to just one ai instead of both, I tried get all actors of class and a for each loop to do the same thing but it didnt make a difference, if anything it made it worse because i could look at one ai and they would all freeze so i know that isnt it.
I am using spawn ai from class to spawn them, im not super sure about loops so i do it one after the other like this:
Any ideas? Do i need to set the index of each spawned ai because of how i spawn them? So they dont get labeled as index 0 for both for example? Is that a thing?
Im sure its probably solved with a checkbox somewhere so if anyone knows Id really appreciate it



