getAllEnvSoundControllers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
Line 16: Line 16:
|r1= [[Array]] in format [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
|r1= [[Array]] in format [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
{{Columns|3|
{{Columns|3|
* <tt>"rain"</tt>
* {{hl|"rain"}}
* <tt>"night"</tt>
* {{hl|"night"}}
* <tt>"windy"</tt>
* {{hl|"windy"}}
* <tt>"daytime"</tt>
* {{hl|"daytime"}}
* <tt>"meadows"</tt>
* {{hl|"meadows"}}
* <tt>"trees"</tt>
* {{hl|"trees"}}
* <tt>"houses"</tt>
* {{hl|"houses"}}
* <tt>"forest"</tt>
* {{hl|"forest"}}
* <tt>"sea"</tt>
* {{hl|"sea"}}
* <tt>"coast"</tt>
* {{hl|"coast"}}
* <tt>"altitudeGround"</tt>
* {{hl|"altitudeGround"}}
* <tt>"altitudeSea"</tt>
* {{hl|"altitudeSea"}}
* <tt>"shooting"</tt>
* {{hl|"shooting"}}
* <tt>"deadbody"</tt>
* {{hl|"deadbody"}}
* <tt>"fog"</tt>
* {{hl|"fog"}}
* <tt>"yearTime"</tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
* {{hl|"yearTime"}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
* <tt>"ambientTemp"</tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
* {{hl|"ambientTemp"}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
* <tt>"snow"</tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
* {{hl|"snow"}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''(since Arma 3 v2.07.148385)''
|shrink= y
|shrink= y
}}
}}

Revision as of 23:44, 15 November 2021

Hover & click on the images for description

Description

Description:
Returns an array containing the names and values of environmental 2D sound controllers, variables that can be used in simple expressions when configuring sounds.
The names of controllers are case sensitive
Please note that the name for the wind param for 2D controller is 'windy'. 'wind' is the name for 3D controller getAllEnv3DSoundControllers
Groups:
Sounds

Syntax

Syntax:
getAllEnvSoundControllers position
Parameters:
position: Position
Return Value:
Array in format [["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
  • "rain"
  • "night"
  • "windy"
  • "daytime"
  • "meadows"
  • "trees"
  • "houses"
  • "forest"
  • "sea"
  • "coast"
  • "altitudeGround"
  • "altitudeSea"
  • "shooting"
  • "deadbody"
  • "fog"
  • "yearTime"     (since Arma 3 v2.07.148385)
  • "ambientTemp"     (since Arma 3 v2.07.148385)
  • "snow"     (since Arma 3 v2.07.148385)

Examples

Example 1:
getAllEnvSoundControllers position player; /* returns e.g [ ["rain",0], ["night",0], ["windy",0.161588], ... ] */

Additional Information

See also:
getAllEnv3DSoundControllersgetEnv3DSoundControllerallEnv3DSoundSourcesselectBestPlacesgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCountArma 3: Sound

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