setWind: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(sets wind vector in m/s, removed misleading note)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set current (forced <nowiki>==</nowiki> false) or permanent (forced <nowiki>==</nowiki> true) wind direction and force. |= Description
| Set current (forced <nowiki>==</nowiki> false) or permanent (forced <nowiki>==</nowiki> true) wind vector. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 14: Line 14:
|p1= [x, z, forced]: [[Array]] |= PARAMETER1  
|p1= [x, z, forced]: [[Array]] |= PARAMETER1  


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


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


|p4= forced: [[Boolean]] |= PARAMETER4  
|p4= forced: [[Boolean]] |= PARAMETER4  
Line 23: Line 23:




|x1= <code>setWind [10,10, true];</code>|= EXAMPLE
|x1= <code>setWind [10, 10, true];</code>|= EXAMPLE
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 38: Line 38:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
setWind [10,10, true]= Winddirection South West with a windforce factor of 10 (probably Beaufort scale, compares to 48-55knots).
I have tested the following values:
[10,10, true];  = South West<br>
[10,-10, true];  = North West<br>
[-10,10, true];  = South East<br>
[-10,-10, true]; = North East<br>
[-10,0, true];  = East<br>
[0,-10, true];  = North<br>
[10,0, true];    = West<br>
[0,10, true];    = South


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>

Revision as of 23:42, 13 June 2013

Hover & click on the images for description

Description

Description:
Set current (forced == false) or permanent (forced == true) wind vector.
Groups:
Uncategorised

Syntax

Syntax:
setWind [x, z, forced]
Parameters:
[x, z, forced]: Array
x: Number Easterly component (in m/s, positive = to the east)
z: Number Northerly component (in m/s, positive = to the north)
forced: Boolean
Return Value:
Nothing

Examples

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

Additional Information

See also:
wind

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

Notes

Bottom Section