er2.setTimeAndWeather 3

Sets the current time of day of the mission and some weather conditions, like clouds, snow and fog.

NOTE: This function it's CPU heavy


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1integerThe hour of the day. Must stay between 0 and 23
2integerThe minute of the day. Must stay between 0 and 59.
3float(Optional) The percentage of clouds in the map. From 0.0 to 1.0
4float(Optional) The percentage of snow over the terrain. From 0.0 to 1.0
5float(Optional) The percentage of fog all over the map. From 0.0 to 1.0

Examples

No examples available.


Back to Scripting API