Give the player an overlapping safety sphere volume of the desired radius.
- when the enemy starts overlap → turn flashlight off
- when the enemy ends overlap → check if enemies are still overlapping the player’s safety sphere
- no overlaps → turn flashlight on
- overlaps → do nothing
Use channels and object types to isolate actors who can trigger it: