# Setting pointlight visibility in the blueprint only effects one actor out of many

**URL:** <https://forums.unrealengine.com/t/setting-pointlight-visibility-in-the-blueprint-only-effects-one-actor-out-of-many/484004>\
**Category:** Rendering\
**Tags:** point-light, visibility, actor-blueprint, unreal-engine, Blueprint, question\
**Created:** [May 27, 2021, 5:03pm UTC](https://forums.unrealengine.com/t/setting-pointlight-visibility-in-the-blueprint-only-effects-one-actor-out-of-many/484004 "2021-05-27T17:03:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fc00337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fc00337](https://forums.unrealengine.com/u/anonymous_user_8fc00337)\
**Post date:** [May 27, 2021, 5:03pm UTC](https://forums.unrealengine.com/t/setting-pointlight-visibility-in-the-blueprint-only-effects-one-actor-out-of-many/484004/1 "2021-05-27T17:03:14Z")

</div>

Hey all! I’m currently working on a horror game where I want all the lights to go out by turning the visibility off on a pointlight once I enter a box collision. Works as intended, but then I notice that only one actor in the scene is affected by it, while the other same actors stay on. How do I fix this? I have never had this happen to me before so I’m pretty confused.

 ![340006-20210527-1300.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/c/7ec5ef8ec9dc318ac47b219f1e4ac573cc827951.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 27, 2021, 6:55pm UTC](https://forums.unrealengine.com/t/setting-pointlight-visibility-in-the-blueprint-only-effects-one-actor-out-of-many/484004/2 "2021-05-27T18:55:48Z")

</div>

You have the overlap code for the collision box in the level BP? You need to do a GetAllActorsOfClass ( OutdoorLamp ), then a ForEach, and turn them all off.

 ![340023-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/6/f264fe857da94817a1deb51ece6c623efda61d3c.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fc00337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fc00337](https://forums.unrealengine.com/u/anonymous_user_8fc00337)\
**Post date:** [May 27, 2021, 7:39pm UTC](https://forums.unrealengine.com/t/setting-pointlight-visibility-in-the-blueprint-only-effects-one-actor-out-of-many/484004/3 "2021-05-27T19:39:58Z")

</div>

Aw man you are a life saver. I could’ve never gotten this on my own. Thanks!
