Skip to content
User Avatar
#3214
Auto-translated
Loli Nikita
Please tell me how to create a script so that the lighting changes every day: for example, Monday - dawn, Tuesday - morning, Wednesday - daytime, Thursday - sunset, Friday - midnight.
Hello. In MapProperties => GroundAmbientLights => right-click => Add. Then, in the line that appears, click on the three dots and select a light setting or click New and create your own lighting, whether it's sunset or midnight. But most importantly: for each new AmbientLight, enter an appropriate name in English into the InternalName parameter – for example, SunRaise. Next, in the script
function NewDayCheck()
if GetDate(DAY_OF_WEEK)==1 *(Monday) then
SetAmbientLight("SunRaise", GROUND, 5);
end;
if GetDate(DAY_OF_WEEK)==2 *(Tuesday) then
SetAmbientLight("SunMiddle", GROUND, 5);
end;
...
end;

Trigger(NEW_DAY_TRIGGER, "NewDayCheck");
Read more about AmbientLight in the manual of the highly respected Jack_of_shadows. Here and further I will refer to his guide and my own.
FAQ by Jack of Shadows, see the section "How to dynamically change map lighting?".
It is mandatory to familiarize yourself with this section; everything that I have not mentioned here to save space and time (due to some work, I am now a little busy) can be found in his guide.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________