setWindDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Position2D" to "Position2D")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(5 intermediate revisions by the same user not shown)
Line 16: Line 16:
|s1= time [[setWindDir]] value
|s1= time [[setWindDir]] value


|p1= time: [[Number]] - Transition time in seconds. {{ic|0}} will cause the change to be immediate
|p1= time: [[Number]] - transition time in seconds. {{hl|0}} will cause the change to be immediate


|p2= value: [[Number]] - Azimuth
|p2= value: [[Number]] - azimuth


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 24: Line 24:
|s2= [[setWindDir]] direction
|s2= [[setWindDir]] direction


|p21= direction: [[Array]] - Flat wind direction and strength in format [[Position#Introduction|Position2D]]
|p21= direction: [[Array]] - flat wind direction and strength in format [[Position#Introduction|Position2D]]


|r2= [[Nothing]]
|r2= [[Nothing]]


|x1= <code>60 '''setWindDir''' 180;</code>
|x1= <sqf>60 setWindDir 180;</sqf>


|x2= <code>'''setWindDir''' [1, -15];</code>
|x2= <sqf>setWindDir [1, -15];</sqf>


|seealso= [[windDir]]
|seealso= [[windDir]]
Line 36: Line 36:
}}
}}


<dl class="command_description">
{{Note
 
|user= Waffle SS.
<dt><dt>
|timestamp= 20140412204600
<dd class="notedate">Posted on April 12, 2014</dd>
|text= Seems to make wind [0, 0] in MP. ({{arma3}} v1.00)
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
}}
<dd class="note">Seems to make wind [0, 0] in MP. (Arma 3 v1.00)
</dl>

Latest revision as of 15:50, 8 November 2023

Hover & click on the images for description

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
Waffle SS. - c
Posted on Apr 12, 2014 - 20:46 (UTC)
Seems to make wind [0, 0] in MP. (Arma 3 v1.00)