How to make a pawn stop registering with AI Perception

In C++ all you need to do is to call UAPerceptionComponent::UnregisterSource. This function however is not exposed to BP, so if you want to do it in BP you’ll need to put more work in.

You need to make pawns not auto register for AIs’ sight sense. To do that add following to your DefaultEngine.ini:

[/Script/AIModule.AISense_Sight]
bAutoRegisterAllPawnsAsSources=false

And then everything that you want observable by AI needs to have a AIPerceptionStimuliSourceComponent. That component has a BP function for unregistering from AIPerceptionSystem.

Cheers,

–mieszko

2 Likes