AI Perception Component not working as expected
Hi, I just started working on AI Perception component. I have a base character blueprint which is the parent of all units from player team. At Event begin play, I'm making it register perception stimuli source.
I added an AI Perception component in my enemy character parent class. In one of the child enemy classes, I've set sight sense with sight radius of 150 and lose sight radius of 200 with peripheral vision angle of 180 deg. On perception updated event, I'm checking if it's the player character and then printing a string if it is.
But as soon as the enemy is spawned in the level, it starts printing the string, even though I'm outside the sight range assuming the sight range is in normal unreal units. However the peripheral vision angle and collision meshes in between prevent the enemy character from detecting the player character. So if it's not a bug, could someone tell me how to fix the sight detection issue.
asked Apr 17 '15 at 03:32 PM in Blueprint Scripting
As far as I know you have to configure your sense in the senses config array. Just expand your entry for the sight config and do your changes there. The values in the AI section doesn't seem to influence the senses at all (I'll left all of them at 0 and sight detection is still working). The perception system is still WIP so things might change in 4.8.
answered May 11 '15 at 10:23 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here