# Environment (scripting commands)

- [ambientTemperature](../../commands/ambientTemperature.md): Returns ambient temperature on the current terrain in Celsius in format: [airTemperature, blackSurfaceTemperature, whiteSurfaceTemperature]
- [date](../../commands/date.md): Return the actual in-mission date and time.
- [dateToNumber](../../commands/dateToNumber.md): Convert a date to a float number, based on Jan 1st 00:00:00 = 0 and Dec 31st 23:59:59 = 1. The same day and time in leap year will be different after 28th of February and 23:59 on 31st of December will be 1.00274.
- [dayTime](../../commands/dayTime.md): Returns the current in-game time in hours. For a formatted version of time, see BIS_fnc_timeToString.
- [enableEnvironment](../../commands/enableEnvironment.md): Enable/disable environmental effects: ambient life and/or ambient sound.
- [enableTraffic](../../commands/enableTraffic.md): Enable ambient traffic.
- [environmentEnabled](../../commands/environmentEnabled.md): Returns status of enableEnvironment command
- [fog](../../commands/fog.md): A getter for setFog. Returns the current value of the fog in range 0..1.
- [fogForecast](../../commands/fogForecast.md): Returns the forecast fog value. A value of 0 means no fog, 1 means maximum fog.
- [fogParams](../../commands/fogParams.md): A getter for setFog (Alt Syntax). Returns extended params for the fog
- [forceWeatherChange](../../commands/forceWeatherChange.md): Forcibly applies previously set weather settings. Skips smooth transitions. This might cause lag.
- [getObjectViewDistance](../../commands/getObjectViewDistance.md): Gets the values of rendering distances of objects and shadows.
- [getShadowDistance](../../commands/getShadowDistance.md): Gets the shadows rendering distance.
- [getTerrainGrid](../../commands/getTerrainGrid.md): A getter for setTerrainGrid, returns the current terrain grid.
- [getTIParameters](../../commands/getTIParameters.md): Returns all Thermal Imaging parameters.
- [gusts](../../commands/gusts.md): Return the current gusts value.
- [humidity](../../commands/humidity.md): Returns the current humidity value. 0 is no humidity and 1 is 100% humidity. Humidity value quickly changes from 0 to 1 when rain starts, then slowly changes from 1 to 0 when rain stops.
- [initAmbientLife](../../commands/initAmbientLife.md): Initialises the ambient life on local client from `CfgWorlds >> worldName >> AmbientA3`. Has no effect on dedicated server or headless client.
- [lightnings](../../commands/lightnings.md): Return the current lightnings value.
- [moonIntensity](../../commands/moonIntensity.md): Returns the intensity of the moon's brightness in range 0..1.
- [moonPhase](../../commands/moonPhase.md): Returns the phase of the in-game Moon on the given date. According to this command, the fullest Moon in Arma 3 at midnight is on `setDate [4804, 7, 13, 0, 0];`.
- [nextWeatherChange](../../commands/nextWeatherChange.md): Return the remaining time (in seconds) over which the current weather change will occur.
- [numberToDate](../../commands/numberToDate.md): Convert float number to a date.
- [overcast](../../commands/overcast.md): Return the current overcast level. Zero is clear skies, one is maximum cloud cover.
- [overcastForecast](../../commands/overcastForecast.md): Return the overcast forecast.
- [rain](../../commands/rain.md): Returns the current value of rain density.
- [rainbow](../../commands/rainbow.md): Returns the current rainbow intensity.
- [rainParams](../../commands/rainParams.md): Returns currently set RainParticles params, custom or default.
- [setDate](../../commands/setDate.md): Sets mission date and time. Players joining after mission start will get the current server date including the year.
- [setFog](../../commands/setFog.md): Smoothly change the fog over given time (in seconds). See also fogParams.
- [setGusts](../../commands/setGusts.md): Changes the gusts value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- [setHumidity](../../commands/setHumidity.md): Sets surface humidity. Affects how footsteps sound (dry / wet). humidity is increasing when raining and decreasing when not raining. Exception is if the rain is set with 'snow' flag, then humidity is not updated.
- [setLightnings](../../commands/setLightnings.md): Changes the lightnings value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- [setLocalWindParams](../../commands/setLocalWindParams.md): Sets parameters for helicopter rotor wash. It affects the visual effect of a rotor's downwash, such as blown particles, vegetation wind effect and area size.
- [setObjectViewDistance](../../commands/setObjectViewDistance.md): Sets the rendering distance of objects and shadows.
- [setOvercast](../../commands/setOvercast.md): Set overcast to given value smoothly during given time (in seconds). Zero time means immediate change. An overcast setting of zero means clear (sunny) weather, and one means storms and rain are very likely.
- [setRain](../../commands/setRain.md): Sets rain density smoothly over the given transition time. A transition time of zero means an immediate change. A rain density of zero is no rain, one is maximum rain. Rain is not possible when overcast is less than 0.7.
- [setRainbow](../../commands/setRainbow.md): Changes the rainbow value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- [setShadowDistance](../../commands/setShadowDistance.md): Sets the shadows rendering distance.
- [setSimulWeatherLayers](../../commands/setSimulWeatherLayers.md): Sets number of simul weather layers, affects quality of simul weather clouds.
- [setTerrainGrid](../../commands/setTerrainGrid.md): Sets the desired terrain resolution in meters.
- [setTimeMultiplier](../../commands/setTimeMultiplier.md): Sets a time multiplier for in-game time. The command range is capped at 0.1 - 120 to avoid performance problems.
- [setTIParameter](../../commands/setTIParameter.md): Sets the provided Thermal Imaging parameter's value.
- [setTrafficDensity](../../commands/setTrafficDensity.md): Set the density of ambient cars in a rectangle (in cars per kilometer).
- [setTrafficDistance](../../commands/setTrafficDistance.md): Set maximum ambient traffic draw distance (in 2D).
- [setTrafficGap](../../commands/setTrafficGap.md): Set the average gap between ambient cars in a rectangle (in meters).
- [setTrafficSpeed](../../commands/setTrafficSpeed.md): Set ambient traffic speed in a rectangle (in kilometers per hour).
- [setViewDistance](../../commands/setViewDistance.md): Set rendering distance. Setting view distance to <= 0 resets the value to the client's options (set in `Options → Video → General → Visibility → Overall`).
- [setWaves](../../commands/setWaves.md): Changes the waves value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- [setWind](../../commands/setWind.md): Set current or permanent wind vector.
- [setWindDir](../../commands/setWindDir.md): Changes the wind direction smoothly.
- [setWindForce](../../commands/setWindForce.md): Set max. wind overall wind changes in time. A time of zero means there will be an immediate change. A wind level of zero is minimal changes and a wind level of one means that wind can change rapidly.
- [setWindStr](../../commands/setWindStr.md): Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- [simulCloudDensity](../../commands/simulCloudDensity.md): Returns density of clouds at given position.
- [simulCloudOcclusion](../../commands/simulCloudOcclusion.md): Returns clouds occlusion between two given points.
- [simulInClouds](../../commands/simulInClouds.md): Returns if given position is in clouds.
- [simulSetHumidity](../../commands/simulSetHumidity.md) **[broken]**: Sets simul cloud cover. This command does not affect overcast value.
- [simulWeatherSync](../../commands/simulWeatherSync.md): Synchronizes Simul Weather with Arma weather, generates all keyframes.
- [skipTime](../../commands/skipTime.md): Jumps the specified number of hours forward or backward. The time of day and tides are adjusted, but no changes are made to any units.
- [sunOrMoon](../../commands/sunOrMoon.md): Returns the moon to sun transition state in range 0..1.
- [timeMultiplier](../../commands/timeMultiplier.md): Returns the value set with setTimeMultiplier.
- [viewDistance](../../commands/viewDistance.md): Returns the rendering distance.
- [waves](../../commands/waves.md): Return waves value.
- [wind](../../commands/wind.md): Returns the current wind vector (in m/s).
- [windDir](../../commands/windDir.md): Returns the current wind azimuth.
- [windStr](../../commands/windStr.md): Returns the current wind strength.
