setWindDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Some wiki formatting)
(24 intermediate revisions by 3 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


|gr1= Environment |GROUP1=
|eff= global


|serverExec= y


|eff= global |Multiplayer Effects=
|descr= Changes the wind direction smoothly.
____________________________________________________________________________________________


| Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.  <br>
|mp= Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
'''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=
|s1= time [[setWindDir]] value


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


|p2= value: [[Number]] - Azimuth. |PARAMETER2=
|p2= value: [[Number]] - Azimuth


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]


|s2= [[setWindDir]] direction


|x1= <code>60 '''setWindDir''' 180</code>|EXAMPLE1=
|p21= direction: [[Array]] - Flat wind direction and strength in format [[Position#Introduction|Position2D]]


____________________________________________________________________________________________
|r2= [[Nothing]]


| [[windDir]] |SEEALSO=  
|x1= <sqf>60 setWindDir 180;</sqf>


| mp= Execute on server |MPBEHAVIOUR=
|x2= <sqf>setWindDir [1, -15];</sqf>
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|seealso= [[windDir]]
<dl class='command_description'>
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on April 12, 2014
}}
<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 -->
{{Note
</dl>
|user= Waffle SS.
 
|timestamp= 20140412204600
<h3 style='display:none'>Bottom Section</h3>
|text= Seems to make wind [0, 0] in MP. ({{arma3}} v1.00)
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|New_Scripting_Commands_List}}

Revision as of 17:16, 26 July 2022

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)