Using two senses with AIPerceptionComponent

So found something that works. Definitely not an ideal solution, but it seems to work for now.

What I’m doing is a Get Sense Class For Stimulus, and checking if it’s “AISense_Sight” or not. If false then it’s sound.

The only problem with this is when the AI perceives a sound, the class comes back “None”. I’m not sure if this is a bug or not, but it seems like it. I haven’t tried it with other senses to see what class they return, but if they come back “None” as well, I’m not sure how you would have more than two senses.

Here’s a screenshot of what I have, the 2nd bool differentiates between the player being seen, and the AI losing sight of the player.

Edit: So, looks like there’s another bug, but this may be in the Blueprint, I’m not sure. Now when I walk into the sight of the player, and make a sound, it registers the class as “AISense_Sight”, instead of “None”. No idea why…