I am currently having an issue where I am NOT able to get my enemy melee AI to sense either hearing or damage. I am sure that this has something to do with the AI controller. Here’s a screenshot of what I have. If anyone could give me some insight, it would be greatly appreciated!
Based on this image alone, that branch condition will always fail because of that last unconnected check, which is false by default and so the condition will fail.
I forgot to remove that pin before posting the screenshot. I was able to fix up the code so that the AI will react to sound now as well as sight. Now, I am trying to figure out why the AI will not react to the player when they are taking damage from the player. Here’s a screenshot of some updated work that I did in the Event Graph.
Sorry for the small image. Wasn’t sure how else to take the screenshot and show all the work. But yes, the event does trigger for sight and sound but it will not for damage.
That’s all the requirements, calling report damage event and of course having the damage sense added, try debugging the perception by pressing the apostrophe key and then num 4.
I was actually able to solve the problem. Turns out the AI was not sensing the projectile of the player due to the projectile being on an overlap. I had the AI setup for an Event Hit instead of an overlap.