SetWindDirection
DocsSetWindDirection(direction)Description
Sets the wind direction. The wind direction will stay persistent until it is reset (see examples).
Parameters
| Name | Type | Description |
|---|---|---|
direction | float | the [wind direction](https://en.wikipedia.org/wiki/Wind_direction) in radians |
Returns
voidThis native does not return a value.
Examples
Official
-- 180 degrees, wind will blow from the south
SetWindDirection(math.rad(180.0))
-- Allows the game to dynamically change the wind direction again
SetWindDirection(-1)