if what I had put in the wiki was correct, AI will automatically turn on/off lights depending on daylight (if allowed by current behaviour mode). I'll do a quick test...
edit : still holds true
I need a script that works for the setting of a base. The vehicles (planes and helicopters) to get closer to the base at night, turn-on the lights and turn-off to their missions.
The vehicles are dynamically created. Even so, the command Lighton, combined with beaviour and combatmode are not effective.