setWind: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2") |
||
(32 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.00 | |||
| | |game2= arma2oa | ||
| | |version2= 1.50 | ||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Environment | ||
| | |eff= global | ||
| | |descr= Set current or permanent wind vector. | ||
{{Feature | important | The effect is global only if it is executed on the server. Wind set locally will sync back to server value in a while.}} | |||
| | |s1= [[setWind]] [x, y, forced] | ||
| [[ | |p1= x: [[Number]] - easterly component (in m/s, positive = to the east) | ||
|p2= y: [[Number]] - northerly component (in m/s, positive = to the north) | |||
| | |p4= forced: [[Boolean]] - (Optional, default [[false]]) set to [[true]] to lock the wind to constantly blows in set direction | ||
| [[ | |r1= [[Nothing]] | ||
| | |x1= <sqf>setWind [10, 10, true];</sqf> | ||
|seealso= [[wind]] [[setWindDir]] [[gusts]] [[setGusts]] | |||
}} | }} | ||
Latest revision as of 15:39, 8 November 2023
Description
- Description:
- Set current or permanent wind vector.
- 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:
Additional Information
- See also:
- wind setWindDir gusts setGusts
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