Download

Controlling AI Perception reporting method ?

Is there a way to control how/when the AI Perception system reports ? Im using the setup pictured below and the issue Im running into is that if I only have 1 sense setup on the perception system what happens is it only updates the perception when a change occurs(which is what I want) So if Im trying to tell the behavior tree to do one thing if it sees the player and something else if it doesnt then it works fine. The problem comes in when I add a second sense(in this case hearing) The system then starts reporting for both senses whenever either is triggered. So for example if I fire a gunshot with sound reporting the perception system will trigger “can hear player” AND “cant see player”. This is causing problems because Im telling the behavior tree to “do X when you cant see the player” and “do Y when you can hear the player” and these are both happening at the same time. Ive tried adding a separate perception component to the controller but it doesnt function. I dont want a change in one sense to trigger an update of another sense when nothing has changed with that sense…