# AI Perception Component won't fire the forgotten event

**URL:** <https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 30, 2024, 12:54am UTC](https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836 "2024-01-30T00:54:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ADIAN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adian/32/1194609_2.png) [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Post date:** [July 1, 2024, 1:30pm UTC](https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836/2 "2024-07-01T13:30:42Z")

</div>

> [@UE5.3 C++: OnTargetPerceptionForgotten Delegate not Firing](https://forums.unrealengine.com/t/ue5-3-c-ontargetperceptionforgotten-delegate-not-firing/1786713/9):
>
> After much digging, I finally solved your (our) problem! The problem with setting bForgetStaleActors with the GetCurrent() method in BeginPlay is that by then it’s too late to actually matter. You see, the UAIPerceptionComponent class does not use bForgetStaleActors from UAISystem, but it’s own bForgetStaleActors that it sets on its constructor with this line: bForgetStaleActors = GET\_AI\_CONFIG\_VAR(bForgetStaleActors); What it does is getting the value of the variable from the default object…

---

_[View the full topic](https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836)._
