wind: Difference between revisions

From Bohemia Interactive Community
No edit summary
m (Fix [x,z,y] → [x,y,z] and remove feint's comment)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the current wind vector (in m/s) as array [x, z, y]. |= Description
| 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
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 15: Line 16:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_windarray = '''wind''';</code> |= Example 1
|x1= <code>_windArray = '''wind''';</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 27: Line 28:


<dd class="notedate">
<dd class="notedate">
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''<dd class="note">In '''OFP 1.96''', wind speed and direction are directly related to [[overcast]].
<dt class="note">[[User:Ceeeb|Ceeeb]]
<dd class="note">In '''OFP 1.96''', wind speed and direction are directly related to [[overcast]].


<!-- Note Section END -->
<!-- Note Section END -->
Line 39: Line 41:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on March 26, 2018 - 00:20 (UTC)</dd>
<dt class="note">[[User:feint|feint]]</dt>
<dd class="note">
The return is always two numbers followed by a 0 (i.e. [1.3,2.5,0]). So I'm going to take a guess that the above "[x,z,y]" is incorrect and should instead be [x,y,z].
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 14:14, 26 March 2018

-wrong parameter ("Arma") defined!- 1.00
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:
Uncategorised

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