setWind: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|gr1= Environment |GROUP1=
|game3= tkoh
|version3= 1.00


|game4= arma3
|version4= 0.50


|eff= global |Multiplayer Effects=
|gr1= Environment
____________________________________________________________________________________________


| Set current (forced <nowiki>==</nowiki> false) or permanent (forced <nowiki>==</nowiki> true) wind vector.<br>
|eff= global
'''NOTE''': The effect is global only if command is executed on the server. Wind set locally will sync back to server value in a while. |DESCRIPTION=
____________________________________________________________________________________________


| '''setWind''' [x, y, forced] |SYNTAX=
|descr= Set current or permanent wind vector.
{{Feature | important | The effect is global only if it is executed on the server. Wind set locally will sync back to server value in a while.}}


|p1= [x, y, forced]: [[Array]] |PARAMETER1=
|s1= [[setWind]] [x, y, forced]


|p2= x: [[Number]] Easterly component (in m/s, positive = to the east) |PARAMETER2=
|p1= x: [[Number]] - easterly component (in m/s, positive = to the east)


|p3= y: [[Number]] Northerly component (in m/s, positive = to the north) |PARAMETER3=
|p2= y: [[Number]] - northerly component (in m/s, positive = to the north)


|p4= forced: [[Boolean]] true: wind constantly blows in set direction, false: wind can change direction (default) |PARAMETER4=
|p4= forced: [[Boolean]] - (Optional, default [[false]]) set to [[true]] to lock the wind to constantly blows in set direction


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


|x1= <sqf>setWind [10, 10, true];</sqf>


|x1= <code>'''setWind''' [10, 10, true];</code>|= EXAMPLE
|seealso= [[wind]] [[setWindDir]] [[gusts]] [[setGusts]]
____________________________________________________________________________________________
 
| [[wind]], [[setWindDir]], [[gusts]], [[setGusts]] |SEEALSO=
 
| mp=Execute on server |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Set current or permanent wind vector.
The effect is global only if it is executed on the server. Wind set locally will sync back to server value in a while.
Groups:
Environment

Syntax

Syntax:
setWind [x, y, forced]
Parameters:
x: Number - easterly component (in m/s, positive = to the east)
y: Number - northerly component (in m/s, positive = to the north)
forced: Boolean - (Optional, default false) set to true to lock the wind to constantly blows in set direction
Return Value:
Nothing

Examples

Example 1:
setWind [10, 10, true];

Additional Information

See also:
wind setWindDir gusts setGusts

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