I use Pawn Class for my Enemys and I using AiPerception for it and I slow down with many problems, for example, I notice first some times Enemy pawn don’t detect my FirstPlayer in its sight and after its detect, FirstPlayer its don’t lose the first player with hiding behind objects! and some other problems :
now my question is even its correct way to use AiPerception for Pawn ? or this only designed for Character?
The problem here is for some reason I using Pawn class for my project, not Character class and it seems AiPerception made for Character class so AiPerception works for Pawn class , yes but with some minor issues.
For example, when the NPC detects first player it is not losing sight when the First player hides behind, objects. in a simple word, it’s not losing sight of NPC’s only way NPC loos the player is by passing from SightRadius, this only cases NPC lose sight of the target.
right now I success to detect the player is behind object but NPC not losing sight! by looking in engine code I find out AiSense_Sight store result of sighted enemies in SightQueryQueue but I couldn’t find a proper way to find out which array belongs which sited enemy so I can clear it and tell to the engine lose sight of the target.
hmm, if pawn sensing is working fine and you need only sight sensing than just go ahead with it. It might take a while to solve the problems with aiperception