xunin 0 Report post Posted September 14, 2015 if (!isServer) exitWith {}; while {true} do { if (daytime >= 19 || daytime < 5) then // after 7pm and before 5am time multiplier changes { setTimeMultiplier 24 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour ) } else { setTimeMultiplier 36 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour ) }; uiSleep 30; };can someone explain how i setup a 3h day / 1h night cycle ... tried some setups but nothing happened Share this post Link to post Share on other sites
Crazy Harry 4 Report post Posted September 14, 2015 Found this: https://www.dropbox.com/s/kqdeai0gg3w0j0g/set Time Multiplier.pdf Share this post Link to post Share on other sites
xunin 0 Report post Posted September 15, 2015 can you explain this ? ^^ Share this post Link to post Share on other sites
Meragon_GER 8 Report post Posted September 15, 2015 #pushcan somebody explain this? Share this post Link to post Share on other sites
Suito 2 Report post Posted September 16, 2015 Okay i want to explain this, the script says if the time is after 19.00 and before 5.00 a clock the time is running with the time Multiplier "24"if the time is between 5.00 - 18.59 the time is running with the Multiplier "36". The Range of the Multiplier is 0.1 to 120; Multiplier 24 mean u have realtime x 24I think the multis u want are 4 for day (3h(real)x4=12(ingame) and 12 for night(1h(real)x12=12h(ingame)The posted Sheet is the Timesheed before patch 1.26. Cheers 1 Share this post Link to post Share on other sites
[OMG]Slim 62 Report post Posted September 16, 2015 (edited) if (!isServer) exitWith {}; while {true} do { if (daytime >= 19 || daytime < 5) then // after 7pm and before 5am time multiplier changes { setTimeMultiplier 24 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour ) } else { setTimeMultiplier 4 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour ) }; uiSleep 30; }; As above will give you about 3 hrs daytime and 1hr night.Change top multiplier (24) to lower to make nights longer. (12 should give you about half hour night).Change bottom multiplier (4) to 6 day will last 2 hrs. Edited September 16, 2015 by [OMG]Slim 1 Share this post Link to post Share on other sites
[OMG]Slim 62 Report post Posted September 16, 2015 (edited) 4 min late including edit, damn Edit: And my edit was changing 12 to 24(in night multiplier) , but i think now @Suito is right it needs to be 12! Edited September 16, 2015 by [OMG]Slim Share this post Link to post Share on other sites
xunin 0 Report post Posted September 16, 2015 time.sqf does not effect to my server ... did i need to change something ?atm in inietplayerlocal.sqf[] execVM "scripts\time.sqf"; Share this post Link to post Share on other sites
Suito 2 Report post Posted September 16, 2015 (edited) u have to use the initPlayerServer.sqf or better the initServer.sqf,PlayerLocal are scripts that get startet if player joins, but executed on PlayerClient.PlayerServer are the same above, just server-side, but if the server run for 2 hour your time is not correct rythm, cause the script is startet to late, (means maybe your night isnt fully)Using initServer.sqf is in this opinion the best u can do, cause if the mission start the server will execute the script the only thing u do is this: if (!isServer) exitWith {};thats a check if the script is running on the server, if not it´s quit the script without doing anything Edited September 16, 2015 by Suito Share this post Link to post Share on other sites