I’m trying to build some AI based on AIPerception Sight Sense. I’ve followed this one, but it seems that the OnPerceptionUpdated doesn’t get called. Also the debug isn’t being drawn at all. Is there any bug on this right now?
The DetectionByAffiliation settings for your AISenseConfig_Sight need to be set to true for the perception component to work properly. Please check out the answer for the following post for a quick explanation of how to setup the perception component and sense config: UAIPerception OnPerceptionUpdated not working - AI - Epic Developer Community Forums
You seem to be right. I’ve moved the code to AIController, but the OnPerceptionUpdated is not been called afterall. I see the debugging for the perception on Gameplay Debugger. I’ve registered the player and other pawns with RegisterPerceptionStimuliSource. It should work… but it’s not.
edit: I just your comment on 's answer so yea it should work, I also saw some problems if you put the PeripheralVisionAngleDegrees to 360.0f; try to put it around 90 to test properly.
Ok. Now I’ve found a real reason why everything wasn’t working after moving stuff to AIController and making some changes in it. I’ve found an in engine bug