FAIStimulus::IsExpired() not working?
I'm trying to retrieve an actor that has been sensed by an AIPerceptionComponen that has not expired yet. The AIPerceptionComponent is part of the AIController and the max age of the AI Sight Config has been set to 2 seconds for testing. The following code is run every 0.5 seconds:
However, the two messages are always shown on the screen once an Actor has been seen. The age also seems to go from 0 to 1, to -2147483648 where the last number seems to me some sort of indication that the stimuli has expired. This gives me the idea that IsExpired() might possibly be not working, any ideas?
asked Apr 23 '16 at 01:35 PM in C++ Programming
I noticed that the MarkExpired call takes place only when the target is out of lose range (pink).
In my case at expired point: Age = 2.09 ExpirationAge = 2.0 Strength = 1.0 bExpired = 1
answered Apr 24 '16 at 08:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here