wind: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| arma1 |1.00 |game2= arma2 |version2= 1.00 |game3= arma2oa |version3= 1.50 |game4= tkoh |version4= 1.00 |game5= arma3 |version5= 0.50 |$1")
m (Some wiki formatting)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|1.00
|version1= 1.00


|game2= arma2
|game2= arma2
Line 18: Line 18:
|gr1= Environment
|gr1= Environment


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


| '''wind'''
|s1= [[wind]]


|r1= [[Array]]
|r1= [[Array]] format [[Vector3D]] as [x, y, 0] - wind being only horizontal


|x1= <code>_windArray = '''wind''';</code>
|x1= <sqf>_windArray = wind;</sqf>


|seealso= [[setWind]], [[windDir]]
|seealso= [[setWind]] [[windDir]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Ceeeb
<dt><dt>
|timestamp= 20080810043800
<dd class="notedate">
|text= In '''OFP 1.96''', wind speed and direction are directly related to [[overcast]].
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
}}
<dd class="note">In '''OFP 1.96''', wind speed and direction are directly related to [[overcast]].
 
</dl>
 
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 18:01, 7 September 2025

Hover & click on the images for description

Description

Description:
Returns the current wind vector (in m/s).
Groups:
Environment

Syntax

Syntax:
wind
Return Value:
Array format Vector3D as [x, y, 0] - wind being only horizontal

Examples

Example 1:
_windArray = wind;

Additional Information

See also:
setWind 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
Ceeeb - c
Posted on Aug 10, 2008 - 04:38 (UTC)
In OFP 1.96, wind speed and direction are directly related to overcast.