AI Sense Sight
About
By default you will only get an update OnPerceptionChange
which means From "visible" to "not visible" or vice versa.
.
To change it to something else like OnEveryPerception
(“Continuous update whenever target is perceived”) you need to subclass the AI Sense and change the NotifyType
in the constructor.
See
EAISenseNotifyType NotifyType
inUAISense
Warning about not using
OnPerceptionChange
If not using the default behavior
UAISense::WantsUpdateOnlyOnPerceptionValueChange
will be false, makingOnTargetPerceptionForgotten
delegate never called inUAIPerceptionComponent::ProcessStimuli
when age expired. This is setup in theFAIStimulus
constructor, see howbWantsToNotifyOnlyOnValueChange
is initialized.
Custom sight detection per actor
See IAISightTargetInterface
with CanBeSeenFrom
.