haremo 8 Report post Posted September 12, 2015 Hello . Where can I change and how to set the day and night on a server . I restarting every four hours and wants three hours the day and one hours night Share this post Link to post Share on other sites
0 Laus 7 Report post Posted September 12, 2015 (edited) You need to add this script on your server:if (!isServer) exitWith {}; while {true} do { if (daytime >= 19 || daytime < 5) then // after 7pm and before 5am time multiplier changes { setTimeMultiplier 10 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour ) } else { setTimeMultiplier 5 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour ) }; uiSleep 30; };And put this start code in your init.sqf:if (isServer) then { [] execVM "addons\time.sqf"; // Time };Create a folder called addons in your MPmissions and put the script inside, like this: "addons\time.sqf";If you have any questions just talk... =)Sorry for my bad english. Edited September 12, 2015 by Laus tutorial 1 Share this post Link to post Share on other sites
0 haremo 8 Report post Posted September 13, 2015 (edited) Thank you . I added this script but I'll check it later. I am going to sleep now . I do not have anything in it change it ? Here it is three hours one day and hours night ? Edited September 13, 2015 by haremo Share this post Link to post Share on other sites
0 haremo 8 Report post Posted September 13, 2015 (edited) Night work thanks . But the night is already underway for over two hours and still dark. How this set would three hours day and one hours night Edited September 13, 2015 by haremo Share this post Link to post Share on other sites
0 Brez 46 Report post Posted September 14, 2015 (edited) Has anyone modified their cycle so it would start at dawn (morning) when the server restarts and progress into night?This would follow the natural progression of a day for a server cycle. It would be night for about almost the last hour.I found this was perfect as other mods did this as their standard day/night cycle.Right now you log in and it seems that it's progressing to night shortly after the server restarts. Edited September 14, 2015 by Brez Share this post Link to post Share on other sites
0 humpabry 5 Report post Posted September 28, 2015 You need to add this script on your server:if (!isServer) exitWith {}; while {true} do { if (daytime >= 19 || daytime < 5) then // after 7pm and before 5am time multiplier changes { setTimeMultiplier 10 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour ) } else { setTimeMultiplier 5 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour ) }; uiSleep 30; };And put this start code in your init.sqf:if (isServer) then { [] execVM "addons\time.sqf"; // Time };Create a folder called addons in your MPmissions and put the script inside, like this: "addons\time.sqf";If you have any questions just talk... =)Sorry for my bad english.added to server but still full daylight all 4 hours..do i need to change class Time { // Uses Dedicated Server time as ingame Time useRealTime = 0; // Will overide RealTime useStaticTime = 1; // time in ARMA FORMAT << CONFIG // https://community.bistudio.com/wiki/setDate staticTime[] = {2039,10,24,12,0}; }; to use real time for this or not? Share this post Link to post Share on other sites
0 Flow 252 Report post Posted September 28, 2015 (edited) Why so complicated using a script?Set your time to static at lets say 9 in the morning and adjust speed of time withsetTimeMultiplierin the initserver.sqf Edited September 28, 2015 by Flow Share this post Link to post Share on other sites
0 boLek 1 Report post Posted September 28, 2015 3 hours day 1 hour night with fogif (!isServer) exitWith {}; while {true} do { if (daytime >= 18 || daytime < 6) then { 1200 setFog [0.9,0.05,20]; setTimeMultiplier 12 } else { setTimeMultiplier 4 }; uiSleep 30; };edit config.cpp in exile_server_config.pbo class Time { // Uses Dedicated Server time as ingame Time useRealTime = 0; // Will overide RealTime useStaticTime = 1; // time in ARMA FORMAT << CONFIG // https://community.bistudio.com/wiki/setDate staticTime[] = {2039,10,24,6,0}; }; Share this post Link to post Share on other sites
0 Guest Report post Posted September 29, 2015 Moved to serverside problems Share this post Link to post Share on other sites
0 KillingRe 55 Report post Posted October 1, 2015 (edited) Maybe someone could help.Im looking for1 hour of day1 hour of nightthen back to 1 hour of dayif i set the setTimeMultiplier to make time faster wont that effect server performance tying to cycle at a fast rate?would not just a quick change from 1 static time like 12pm real time then switch to like 10pm for night then back hour later?may look fast when it switch's but its not trying to rush the cycle Edited October 1, 2015 by KillingRe Share this post Link to post Share on other sites
0 TBsThug 38 Report post Posted October 26, 2015 Moved to serverside problemsLike what kind of problems Share this post Link to post Share on other sites
Hello . Where can I change and how to set the day and night on a server . I restarting every four hours and wants three hours the day and one hours night
Share this post
Link to post
Share on other sites