I configure AIPerception component with sight.
My AI can see many players (multiplayer). Every time I successfully sense player - add its character to array.
Every time event “On Target Perception Updated” return successfully sensed to false - remove player from array.
Problem is that event “On Target Perception Updated (AIPerception)” sometimes is not fire when loose player from sight.
In this case my AI still hunting player, because never get information AI lose it from sight.
I tried some things:
- AI Sight: Max Age is 0,0 or 0,1 or 1,5 (and different code for this settings of course)
- run in timer (0,15 sec) node “Request Stimuli Listener Update” on target “AIPerception” component
None of above solution work