Code:
Licht_ein_aus = true;
player globalChat "LICHTER FLACKERN!";
_autos = [Auto01,Auto02,Auto03, usw.];
while {Licht_ein_aus} do //bis der Spieler das Licht ausschaltet, wird das Licht flackern
{
{player action ["lightOn", _x]} forEach _autos;
sleep random 0.5;
{player action ["lightOff", _x]} forEach _autos;
sleep random 0.5
};
http://community.bistudio.com/wiki/Control_Structures