UAIPerception OnPerceptionUpdated not working
Hello, So I have been working with the perception component but and I have configured a few senses, and then i try to use the OnPerceptionUpdated but the print statement does not work. This is what I have
This is my custom controller class possess function called MobAI:
This is the function SetSenses():
This is the custom PerceptionComponent called MobAIPerceptionComponent:
And finally the custom sense config class (it is essentially the same for all three):
When I use the gameplay debugger (I have actually never used it before, so bear with me) this is what happens:
EDIT So with Perception enabled it clearly shows the character is within range of both sight and hearing.
I tried using:
In order to see if anything was being seen, but it showed a empty array. EDIT
Okay so here are the full files: https://www.dropbox.com/sh/pm2qhzg593a303v/AABu_6c20DEnZldlbyjZq84Ia?dl=0
All of the variables are set via blueprint in the editor on the MobCharacter Class, everything else is derived from there.
I was able to test the OnPerceptionUpdated delegate binding using the following steps:
As I walked around the placed pawn, the on screen message and log warning from my Test function printed which indicated that the dynamic binding was being called. In my test I created the perception component and AISenseConfig_Sight as part of the AIController class rather than subclassing them. Let me know if these steps and files help any or if you're still experiencing a problem with your binding setup.
answered Nov 03 '16 at 06:08 PM
Could it be that your affiliation settings are wrong?
Hope this helps,
answered Oct 19 '16 at 08:17 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here