wind: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:




____________________________________________________________________________________________


| Returns the current wind vector (in m/s) as array [x, y, z].<br>
| Returns the current wind vector (in m/s) as array [x, y, z].<br>
'''NOTE:''' the last value (z, "up-down") always returns 0 – wind being only horizontal. |DESCRIPTION=
'''NOTE:''' the last value (z, "up-down") always returns 0 – wind being only horizontal. |DESCRIPTION=
____________________________________________________________________________________________


| '''wind''' |SYNTAX=
| '''wind''' |SYNTAX=


| [[Array]] |RETURNVALUE=
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>_windArray = '''wind''';</code> |EXAMPLE1=
|x1= <code>_windArray = '''wind''';</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[setWind]], [[windDir]] |SEEALSO=
| [[setWind]], [[windDir]] |SEEALSO=

Revision as of 04:18, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns the current wind vector (in m/s) as array [x, y, z].
NOTE: the last value (z, "up-down") always returns 0 – wind being only horizontal.
Groups:
Environment

Syntax

Syntax:
wind
Return Value:
Array

Examples

Example 1:
_windArray = wind;

Additional Information

See also:
setWindwindDir

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note

Notes

Ceeeb
In OFP 1.96, wind speed and direction are directly related to overcast.

Bottom Section