Use AI Perception Component to move between sound sources.

rconnor410
Mon, 04 Mar 2019 20:58:07 +0000
Audio

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.

1 post - 1 participant