ArmA 3 Wasteland Setting up Day/Night Cycle

Post Reply
User avatar
J-English
This is my homepage
This is my homepage
Posts: 618
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 15, 2010 4:06 am
Location: United Kingdom

ArmA 3 Wasteland Setting up Day/Night Cycle

Post by J-English »

My server restarts every 4 hours.
What would the settings be for 2 hours day and 2 hours night.

or if possible 3 hours day and 1 hour night so then my server restarts back online for day starts .
would this be the correct setting?

Code: Select all

// General settings
A3W_startHour = 06;                // In-game hour at mission start (0 to 23)
A3W_timeMultiplierDay = 6.0;       // Sets the speed of time between 5 AM and 8 PM (for example, 6.0 means 6 hours in-game will pass in 1 real hour)
A3W_timeMultiplierNight = 6.0;     // Sets the speed of time between 8 PM and 5 AM
Caliban55
This is my homepage
This is my homepage
Posts: 439
Joined: Sat Sep 04, 2010 10:20 am
Location: Cologne, Gemany
Contact:

Re: ArmA 3 Wasteland Setting up Day/Night Cycle

Post by Caliban55 »

Assuming that 5:00 (5 AM) corresponds with the sun going up and 20:00 (8 PM) the sun going down, this means that there are 15 hours of daytime and 9 hours of nighttime (24 - 15) in this cycle.
If you want to speed up the time by a factor and have for example 3 hours daytime and 1 hour nighttime, you can do the following:
Daytime multiplication factor
3 hours multiplied by x = 15 hours <=> x = (15 hours divided by 3 hours) = 5

Nighttime multiplication factor
1 hours multiplied by x = 9 hours <=> x = (9 hours divided by 1 hours) = 9

Side note: The setTimeMultiplier command is a performance demanding function, using it on a high player count server will most likely not improve the performance...
https://community.bistudio.com/wiki/setTimeMultiplier
User avatar
J-English
This is my homepage
This is my homepage
Posts: 618
Joined: Thu Apr 15, 2010 4:06 am
Location: United Kingdom

Re: ArmA 3 Wasteland Setting up Day/Night Cycle

Post by J-English »

Thankyou calibaan
Post Reply