# How would I toggle between two AI perception components?

**URL:** <https://forums.unrealengine.com/t/how-would-i-toggle-between-two-ai-perception-components/837361>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 1, 2023, 2:32pm UTC](https://forums.unrealengine.com/t/how-would-i-toggle-between-two-ai-perception-components/837361 "2023-04-01T14:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeballer77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freeballer77](https://forums.unrealengine.com/u/freeballer77)\
**Post date:** [April 1, 2023, 2:32pm UTC](https://forums.unrealengine.com/t/how-would-i-toggle-between-two-ai-perception-components/837361/1 "2023-04-01T14:32:15Z")

</div>

My goal is to allow the player to hide in the dark by turning their flashlight off. The enemy ai has two AI perception components, one that can see 1000m and one that has no sight sense at all. How would I make it so that toggling the flashlight on/off also toggles between two AI perception components within the enemy ai?

---

<div class="post-metadata">

**Author:** ![freeballer77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freeballer77](https://forums.unrealengine.com/u/freeballer77)\
**Post date:** [April 1, 2023, 7:51pm UTC](https://forums.unrealengine.com/t/how-would-i-toggle-between-two-ai-perception-components/837361/2 "2023-04-01T19:51:56Z")

</div>

![why it aint work 3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/9/2296758b1ae289ae6c48af70b27161b3552a963d.jpeg)  
Here is my third person character BP

---

<div class="post-metadata">

**Author:** ![freeballer77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freeballer77](https://forums.unrealengine.com/u/freeballer77)\
**Post date:** [April 1, 2023, 7:54pm UTC](https://forums.unrealengine.com/t/how-would-i-toggle-between-two-ai-perception-components/837361/3 "2023-04-01T19:54:19Z")

</div>

![why it aint work 4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/e/49e39c932c0bd2e665dd839a80e1abd5d8491ad7.jpeg)  
this is the enemy ai, to me this logically makes sense but what am i doing wrong?
