AI Perception: Detecting the Players slows down significantly with the number of AIs in the Level

I’m dealing with this as well.

I had one solution working, but there’s holes in it. I put the AI Perception onto my Player Character with a 300 radius and 400 dropoff radius, but now 90% of the AI’s that are actually in front of me (who are perceiving me) I am not perceiving, so the AI Perception engine is actually “broken”. It’s literally bugged.

If AI Perception says 300 radius / 400 dropoff and I have 3 AI’s in front of me at 100 radius, I should perceive them — but as I said, only 90% are perceived regardless of their distance.

It results in invulnerable monsters because my hits do not propagate to them when I iterate my perceived AIs.

So I am probably going to have to just write something “get all actors within X radius” and rule out non-enemies when I hit them.

PS: every step of my game so far I am having to watch tutorials to do things, so I’m learning no matter what I do (ie: noob).