AI Perception only can detect middle of player
I have a player character peeking out of cover with his head sticking out. However, the AI with AI Perception can't see him because the middle of his body is not visible. Is there anyway to make the AI be able to detect his entire body?
asked May 17 '15 at 12:31 AM in Blueprint Scripting
To make AI sight sense use custom locations for testing character's visibility make your character class derive from
We'll introduce blueprint-friendly way of doing that at some point.
answered May 25 '15 at 12:55 PM
I'm pretty sure AIPerception's sight sense just uses a trace to the actor location and ignores the actor's geometry. Doing anything more detailed would be considerably more expensive performance-wise and also hard to generalize, given that perception should work with any kind of actor.
That said, it would certainly be possible to add a sight sense which had a special case for, for example, actors with a USkeletalMeshComponent, which did multiple line traces. The system is set up so you can register your own custom sense classes. I think it's probable support will be added by Epic for this at some point in the future too.
answered May 17 '15 at 06:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here