Actor (weapon/shield) attached to character blocks AI Perception

Hello guys!

I’m working on my AI but having a problem when it comes to AI perception.

It seems that my actor (weapons) attached to character is blocking the line of sight reason why my AI loss sight and stop chasing my character.

I already tried googling it and remove collision of my weapons or turn-off visibility. I wonder if you have any idea on this guy. Here’s the video of my issue

Thanks,

You want to run a print check to see what the AI is looking at. To do this you would add a print to screen in their visibility detection script and have it print out the asset that it’s looking at.

The way to fix it is as you’ve tried collision and visibility (remember block camera if your AI is using a camera to visibly detect the player). You’re also gonna want to use desired object types for your AI detection, IE it only wants to detect whatever collision setting your character is set to, everything else should be ignored.

1 Like

I was having the same issue as the OP, tried all the usual things but hadn’t thought to change the collision responses as you mentioned.

For anyone having the same issue: the fix for me was setting the Visibility trace response to “Ignore” for all of my character’s child actor equipment.

image