setWindDir: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Position2D" to "Position2D") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 28: | Line 28: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf>60 '''setWindDir''' 180;</sqf> | ||
|x2= < | |x2= <sqf>'''setWindDir''' [1, -15];</sqf> | ||
|seealso= [[windDir]] | |seealso= [[windDir]] |
Revision as of 10:24, 13 May 2022
Description
- Description:
- Changes the wind direction smoothly.
- Multiplayer:
- Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
- Groups:
- Environment
Syntax
- Syntax:
- time setWindDir value
- Parameters:
- time: Number - Transition time in seconds.
0
will cause the change to be immediate - value: Number - Azimuth
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- setWindDir direction
- Parameters:
- direction: Array - Flat wind direction and strength in format Position2D
- Return Value:
- Nothing
Examples
- Example 1:
- 60 '''setWindDir''' 180;
- Example 2:
- '''setWindDir''' [1, -15];
Additional Information
- See also:
- windDir
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on April 12, 2014
- Waffle SS.
- Seems to make wind [0, 0] in MP. (Arma 3 v1.00)