Enemy Won't Shoot

OKAY! so, My enemy AI used to shoot at me, but I changed collision on the third person character and then it stopped, I tried switching it back but it’s not working. it still roams around, just doesn’t shoot, or even follow me for that matter. it can no longer see me at all.

  1. I got the nav mesh bounds
  2. pawn sensing radius is wide enough
  3. sense players and see pawns is ticked

Code

Pawn Sensing
Screenshot 2024-06-20 172832

Enemy Mesh Collision

Player Collision

Hey @riaaa!

I’m seeing you have your collision responce to the visibility trace set to “Ignore.” Did you set up the AI to not use visibility to detect the player? I think that for the sight detection to work, the target to be detected has to block visibility trace. Can you set that to block, save it, restart the project then give it a try?

Let us know how it goes!

it sitll didn’t work

I siwtched it out for a sphere collision on begin overlap and t’s working

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.