setWindDir: Difference between revisions
| m (template:command argument fix) | Lou Montana (talk | contribs)  m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") | ||
| (35 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| | arma3 |=  | |game1= arma3 | ||
| |version1= 0.50 | |||
| | | |gr1= Environment | ||
| |  | |eff= global | ||
| |  | |serverExec= y | ||
| | | |descr= Changes the wind direction smoothly. | ||
| | | |mp= Effect is global only when executed on the server. On clients wind direction will sync to server value in a while. | ||
| | [[ | |s1= time [[setWindDir]] value | ||
| |p1= time: [[Number]] - transition time in seconds. {{hl|0}} will cause the change to be immediate | |||
| | | |p2= value: [[Number]] - azimuth | ||
| |r1= [[Nothing]] | |||
| | [[ | |s2= [[setWindDir]] direction | ||
| |  | |p21= direction: [[Array]] - flat wind direction and strength in format [[Position#Introduction|Position2D]] | ||
| |r2= [[Nothing]] | |||
| < | |x1= <sqf>60 setWindDir 180;</sqf> | ||
| |x2= <sqf>setWindDir [1, -15];</sqf> | |||
| < | |||
| |seealso= [[windDir]] | |||
| }} | |||
| {{Note | |||
| |user= Waffle SS. | |||
| [ | |timestamp= 20140412204600 | ||
| |text= Seems to make wind [0, 0] in MP. ({{arma3}} v1.00) | |||
| }} | |||
Latest revision as of 15:50, 8 November 2023
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 Apr 12, 2014 - 20:46 (UTC)
- Seems to make wind [0, 0] in MP. (Arma 3 v1.00)
 
	