# Set Day Length

Grammar — Set day length to length game seconds
FlagsNative | Action

Sets the amount of game time it will take to cycle through 24 hours of time of day.

# Arguments

  • fixed — Length

Returns — void

native void GameTimeOfDaySetLength(fixed inSecs);

Category: Environment / Lighting

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L6248
GameTimeOfDaySetLength(0.0)
// L682
GameTimeOfDaySetLength((gv_dAY_DURATION + gv_nIGHT_DURATION))
// L5826
GameTimeOfDaySetLength(0.0)
// L731
GameTimeOfDaySetLength(140.0)
// L5041
GameTimeOfDaySetLength(0.0)
// L5233
GameTimeOfDaySetLength(0.0)
// L5611
GameTimeOfDaySetLength(0.0)
// L6248
GameTimeOfDaySetLength(0.0)
// L682
GameTimeOfDaySetLength((gv_dAY_DURATION + gv_nIGHT_DURATION))
// L5826
GameTimeOfDaySetLength(0.0)
// L731
GameTimeOfDaySetLength(140.0)
// L5041
GameTimeOfDaySetLength(0.0)
// L5233
GameTimeOfDaySetLength(0.0)
// L5611
GameTimeOfDaySetLength(0.0)

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L987
GameTimeOfDaySetLength(480.0)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L1061
GameTimeOfDaySetLength(libGAwX_gv_dayLenth)