# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaycuSandas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JaycuSandas](https://forums.unrealengine.com/u/JaycuSandas)\
**Post date:** [January 30, 2024, 12:54am UTC](https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836/1 "2024-01-30T00:54:24Z")

</div>

When the MaxAge expires, the forgotton function will never fire.

---

<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…

---

<div class="post-metadata">

**Author:** ![huehuehue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@huehuehue](https://forums.unrealengine.com/u/huehuehue)\
**Post date:** [June 25, 2025, 6:32pm UTC](https://forums.unrealengine.com/t/ai-perception-component-wont-fire-the-forgotten-event/1652836/3 "2025-06-25T18:32:48Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/e/82ebbdf167eb1d6c581367b9f762e24ff6a029cb.png)  
why the ■■■■ would this be turned off by default
