setWindStr: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
No edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= Environment
____________________________________________________________________________________________


| Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change. |DESCRIPTION=
|descr= Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
____________________________________________________________________________________________


| time '''setWindStr''' value |SYNTAX=
|s1= time [[setWindStr]] value


|p1= time: [[Number]] |PARAMETER1=
|p1= time: [[Number]]


|p2= value: [[Number]] - new value in range 1...0|PARAMETER2=
|p2= value: [[Number]] - new value in range 0..1


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]


|x1= <sqf>60 setWindStr 0.8; // set the wind strength to 0.8 gradually over the next 60 seconds</sqf>


|x1= <code> 60 '''setWindStr''' 0.8; // set the wind strength to 0.8 gradually over the next 60 seconds
|seealso= [[setWind]] [[setWindForce]]
</code>|EXAMPLE1=
}}
 
____________________________________________________________________________________________
 
| [[setWind]] [[setWindForce]] |SEEALSO=


| |MPBEHAVIOUR=  
{{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
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:39, 1 August 2022

Hover & click on the images for description

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
samatra - c
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