AI Perception History
I have managed to get basic AI perception working fine. however, when running the ai debug I noticed that a perceived actor's last known location was stored along with the age of the stimulus. I couldn't find where the actor's last known location and age is stored, as the documentation is still not the best on AI Perception. Does anyone know where this is stored on the component?
asked Feb 04 '18 at 07:35 PM in C++ Programming
Actually, reading engine's code is way better and faster than using the documentation. :)
UAIPerceptionComponent contains PerceptualData private property. It's a map AActor -> FActorPerceptionInfo. The values within this map, have GetLastStimulusLocation function that reads this information from internal array of elements of type FAIStimulus.
Hope this helps.
answered Mar 08 '18 at 09:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here