Difference between revisions of "SetClimateSunsetEnd"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>DragoonWraith |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
(nothing) SetClimateSunsetEnd time:short climate:ref | (nothing) SetClimateSunsetEnd time:short climate:ref | ||
Sets the time sunset ends as a number of | Sets the time sunset ends as a number of ten-minute units since midnight. There are 1,440 minutes in a day, thus there are 144 ten-minute units, thus you'll use a value of 0 for midnight, and 143 for 23:50 (but see note, below). | ||
==Notes== | ==Notes== | ||
*Use [[RefreshCurrentClimate]] after using this function. | *Use [[RefreshCurrentClimate]] after using this function. | ||
*The time parameter must have a value that is at least 1 greater than the value returned by GetClimateSunsetBegin (so at least 10 minutes later than the corresponding time) for the function to have an effect. | |||
*The upper limit to the time parameter is 255, which equates to the latest time the sunset can end as being 18:39 the next day. While the sunrise end and sunset beginning cannot overlap, the sunset end and sunrise beginning can, though the in-game consequences of an overlap or a time value of over 143 (23:59) have not been tested. | |||
==See Also== | ==See Also== | ||
*[[Climates]] | |||
*[[GetCurrentClimateID]] | *[[GetCurrentClimateID]] | ||
*[[RefreshCurrentClimate]] | *[[RefreshCurrentClimate]] |
Latest revision as of 08:29, 31 January 2011
A command for Oblivion Script Extender
Syntax:
(nothing) SetClimateSunsetEnd time:short climate:ref
Sets the time sunset ends as a number of ten-minute units since midnight. There are 1,440 minutes in a day, thus there are 144 ten-minute units, thus you'll use a value of 0 for midnight, and 143 for 23:50 (but see note, below).
Notes[edit | edit source]
- Use RefreshCurrentClimate after using this function.
- The time parameter must have a value that is at least 1 greater than the value returned by GetClimateSunsetBegin (so at least 10 minutes later than the corresponding time) for the function to have an effect.
- The upper limit to the time parameter is 255, which equates to the latest time the sunset can end as being 18:39 the next day. While the sunrise end and sunset beginning cannot overlap, the sunset end and sunrise beginning can, though the in-game consequences of an overlap or a time value of over 143 (23:59) have not been tested.