setWind: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *((\[\[[a-zA-Z0-9:]+\]\],? ?)+) \|mp=([^ ]+) \}\}" to " |seealso= $1 |mp=$3 }}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 17: | Line 17: | ||
|eff= global | |eff= global | ||
| Set current | |descr= Set current or permanent wind vector. | ||
{{Feature | important | The effect is global only if command is executed on the server. Wind set locally will sync back to server value in a while.}} | |||
| | |s1= [[setWind]] [x, y, forced] | ||
|p1= [x, y, forced]: [[Array]] | |p1= [x, y, forced]: [[Array]] | ||
Line 28: | Line 28: | ||
|p3= y: [[Number]] Northerly component (in m/s, positive = to the north) | |p3= y: [[Number]] Northerly component (in m/s, positive = to the north) | ||
|p4= forced: [[Boolean]] true | |p4= forced: [[Boolean]] - (Optional, default [[false]]) set to [[true]] to lock the wind to constantly blows in set direction | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code> | |x1= <code>[[setWind]] [10, 10, true];</code> | ||
|seealso= [[wind]], [[setWindDir]], [[gusts]], [[setGusts]] | |seealso= [[wind]], [[setWindDir]], [[gusts]], [[setGusts]] | ||
}} | }} | ||
Revision as of 09:48, 11 June 2021
Description
- Description:
- Set current or permanent wind vector.
- Groups:
- Environment
Syntax
- Syntax:
- setWind [x, y, forced]
- Parameters:
- [x, y, forced]: Array
- 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:
- windsetWindDirgustssetGusts
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