Im using an AI based entirely on sound. I have to use the AI Perception component. In its current state the AI will perceive sound correctly and move to the noise causer.
However i want it so that if say i make a noise and its coming towards me, then something else makes a noise, then it will move towards that and so on.
We are using an enum of behaviours (Roam, Follow, Attack) and using this enum as a switch in a service on the AI behaviour tree. So when the AI percieves a sound, It switches from the Roam to Follow. Which is the part that works but we cant seem to get it to follow another target if it hears something else whilst following.