setWind: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 32: Line 32:
|x1= <code>[[setWind]] [10, 10, true];</code>
|x1= <code>[[setWind]] [10, 10, true];</code>


|seealso= [[wind]], [[setWindDir]], [[gusts]], [[setGusts]]
|seealso= [[wind]] [[setWindDir]], [[gusts]], [[setGusts]]
}}
}}

Revision as of 18:08, 20 January 2022

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 setWindDirgustssetGusts

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