-
Notifications
You must be signed in to change notification settings - Fork 18
Faster night or day cycles
TheLocalPub edited this page May 2, 2024
·
1 revision
Allows the mission maker to make time go faster between certain times.
Place the following code to postInitServer.sqf
if (!isServer) exitWith {};
while {true} do
{
if (daytime >= 20 || daytime < 5) then
{
setTimeMultiplier 25
}
else
{
setTimeMultiplier 1
};
uiSleep 30;
};
-
daytime >= 20 || daytime < 5
- The time from when the faster time cycle should stop and end, i.e 20 = 8pm, 5 = 5am. -
setTimeMultiplier 25
- How fast you want the time cycle to be. -
setTimeMultiplier 1
- (Optional) If you would still like time to be faster outside of the above hours, but not 25x fast, change 1 to your desired speed.