Well, in a tank battle at night, you might have 5-10 tanks per side, each with a headlight.
So it would be possible to just turn off lights that aren't seen at a given point in time?