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.
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.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________