Code:
-- --------------------------------------------------------------------------------------------------------------------------
-- ----------------------------------------------[Licht Aktivierung]---------------------------------------------------------
-- --------------------------------------------------------------------------------------------------------------------------
Script.SetTimer( 1500,function()
if(LightsOn) then return else
local coursepos = { 1379.767,1849.867,81.0473 }; g_gameRules:CreateExplosion(tunnelstart1, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 1378.984,1851.038,81.0473 }; g_gameRules:CreateExplosion(tunnelstart2, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 1378.06,1852.306,81.0473 }; g_gameRules:CreateExplosion(tunnelstart3, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 1377.313,1853.37,81.0473 }; g_gameRules:CreateExplosion(tunnelstart4, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2590.833,1944.952,54.5533 }; g_gameRules:CreateExplosion(tunnelstart5, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2583.082,1947.211,63.1837 }; g_gameRules:CreateExplosion(tunnelstart6, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2574.34,1949.471,54.6812 }; g_gameRules:CreateExplosion(tunnelstart7, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2568.158,1951.326,54.8033 }; g_gameRules:CreateExplosion(tunnelstart8, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2560.602,1956.199,62.2621 }; g_gameRules:CreateExplosion(tunnelstart9, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
local coursepos = { 2553.571,1960.491,54.9312 }; g_gameRules:CreateExplosion(tunnelstart10, mesaracing,0,coursepos,g_Vectors.up,1,1,1,1,"misc.static_lights.green_flickering" ,1, 1, 1, 1);
LightsOn = true;
Script.SetTimer( 300000,function()
LightsOn = false; end); end end);
am liebsten wer mir eine Script.SetTimer( 300000,function() variable die dann alle lichter wieder entfernt.