Configure PerceptionComponent in C++
So I'm trying to set some basic AI perception sense config in C++, but for some reason, it crashes. Here's what I have right now.
and my .cpp is quite simple:
I can't find anything about it in recent versions. Has anybody achieved this?
asked Dec 18 '16 at 06:58 AM in C++ Programming
I did something similar to that some time ago, but instead of put as property the SenseConfig, I put in my NPC Pawn only the properties that I want to set on the Perception and in the AIController I already have the perception component with the SightSense added. With that, the only thing that I do is after Possess the NPC, get the SightSense on the Controller/PerceptionComponent and set the config variables with the variables on my Pawn.
I have something like this in my AIController:
On the other hand, to bind the perceptionupdated function:
Hope this help you.
answered Dec 18 '16 at 02:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here