When trying to create a mission and force the AI to use flashlight with enableGunLights "forceOn". All of the AI will not turn their flashlights on even if the player gets closer. After certain distance from the player, it seems that the AI has random chance to have its light on or off. The further AI might have the light on but the one closer to the player might not have.
When you place the same amount of AI in a circle around the player or just close enough, all of them will have flashlights on.