setWindDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(server command really)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= Environment
|eff= global |= Effects in MP
____________________________________________________________________________________________


| Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.  <br>
|eff= global
'''NOTE''': Effect is global only when executed on the server. On clients wind direction will sync to server value in a while. |= Description
____________________________________________________________________________________________


| time '''setWindDir''' value |= Syntax
|serverExec= y


|p1= time: [[Number]]  |= PARAMETER1
|descr= Changes the wind direction smoothly.


|p2= value: [[Number]] - Azimut. |= PARAMETER2
|mp= Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.


| [[Nothing]] |= RETURNVALUE
|s1= time [[setWindDir]] value


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


|x1= <code>60 '''setWindDir''' 180</code>|= EXAMPLE1
|p2= value: [[Number]] - azimuth


____________________________________________________________________________________________
|r1= [[Nothing]]


| [[windDir]] |= SEEALSO
|s2= [[setWindDir]] direction


| mp= Execute on server |= MPBEHAVIOUR
|p21= direction: [[Array]] - flat wind direction and strength in format [[Position#Introduction|Position2D]]
____________________________________________________________________________________________
 
}}
|r2= [[Nothing]]


<h3 style='display:none'>Notes</h3>
|x1= <sqf>60 setWindDir 180;</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on April 12, 2014
|x2= <sqf>setWindDir [1, -15];</sqf>
<dt class="note">'''[[User:Waffle SS.|Waffle SS.]]'''
<dd class="note">Seems to make wind [0,0] in MP. (ArmA 3 1.00)
<BR><BR>


<!-- Note Section END -->
|seealso= [[windDir]]
</dl>


<h3 style='display:none'>Bottom Section</h3>
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]
{{Note
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|user= Waffle SS.
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
|timestamp= 20140412204600
|text= Seems to make wind [0, 0] in MP. ({{arma3}} v1.00)
}}

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)