setWindStr: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ") |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 12: | Line 12: | ||
|p1= time: [[Number]] | |p1= time: [[Number]] | ||
|p2= value: [[Number]] - new value in range | |p2= value: [[Number]] - new value in range 0..1 | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>60 setWindStr 0.8; // set the wind strength to 0.8 gradually over the next 60 seconds</sqf> | ||
</ | |||
|seealso= [[setWind]] [[setWindForce]] | |seealso= [[setWind]] [[setWindForce]] | ||
}} | |||
{{Note | |||
|user= samatra | |||
|timestamp= 20220801093946 | |||
|text= This weird command affects `setFog` by limiting maximum number of fogValue you can have. If you do <sqf inline>0 setWindStr 1</sqf>, setting any fog with time > 0 will reduce the fog to 0 over provided time. Setting fog instantly with time = 0 will set the desired value properly though. The formula is: max fogValue = 1 - windStr | |||
}} | }} |
Latest revision as of 10:39, 1 August 2022
Description
- Description:
- Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
- Groups:
- Environment
Syntax
- Syntax:
- time setWindStr value
- Parameters:
- time: Number
- value: Number - new value in range 0..1
- Return Value:
- Nothing
Examples
- Example 1:
- 60 setWindStr 0.8; // set the wind strength to 0.8 gradually over the next 60 seconds
Additional Information
- See also:
- setWind setWindForce
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
- Posted on Aug 01, 2022 - 09:39 (UTC)
- This weird command affects `setFog` by limiting maximum number of fogValue you can have. If you do 0 setWindStr 1, setting any fog with time > 0 will reduce the fog to 0 over provided time. Setting fog instantly with time = 0 will set the desired value properly though. The formula is: max fogValue = 1 - windStr