setWindDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (formatting)
Line 9: Line 9:
|eff= global
|eff= global


|descr= Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.  <br>
|serverExec= y
'''NOTE''': Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
 
|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
|s1= time '''setWindDir''' value
|p1= time: [[Number]]
 
|p2= value: [[Number]] - Azimuth.
|p1= time: [[Number]] - Transition time in seconds. {{ic|0}} will cause the change to be immediate
 
|p2= value: [[Number]] - Azimuth
 
|r1= [[Nothing]]
|r1= [[Nothing]]


|s2= '''setWindDir''' direction
|s2= '''setWindDir''' direction
|p21= direction: [[Array]] - Flat wind direction '''and force''' in format [[Position2D]]
|p21= direction: [[Array]] - Flat wind direction '''and force''' in format [[Position2D]]
|r2= [[Nothing]]
|r2= [[Nothing]]


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


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


|mp= Execute on server
}}
}}


Line 33: Line 41:
<dd class="notedate">Posted on April 12, 2014</dd>
<dd class="notedate">Posted on April 12, 2014</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">Seems to make wind [0,0] in MP. (Arma 3 1.00)
<dd class="note">Seems to make wind [0, 0] in MP. (Arma 3 v1.00)
<BR><BR>
 
</dl>
</dl>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

Revision as of 09:52, 28 April 2021

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 force 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)