local make daylight script (Request)
I have a script that makes it daylight/nighttime but it requires a RE as its not local
here is the script
how will i make it not need a RE and just make my screen daylight?
thanks.
here is the script
Code:
if (isNil "nd") then
{
nd = 0;
};
if (nd == 0) then
{
nd = 1;
hint "Night";
_night = "if (isServer) then
{
setDate [2012, 9, 1, 3, 30];
dayzSetDate = [2012, 9, 1, 3, 30];
publicVariable ""dayzSetDate"";
};";
[_night] execVM "scr\exec.sqf";
}
else
{
nd = 0;
hint "Day";
_day = "if (isServer) then
{
setDate [2012, 9, 1, 14, 0];
dayzSetDate = [2012, 9, 1, 14, 0];
publicVariable ""dayzSetDate"";
};";
[_day] execVM "scr\exec.sqf";
};
how will i make it not need a RE and just make my screen daylight?
thanks.
