getAllEnvSoundControllers: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.64 | |||
|1.64 | |||
|gr1= Sounds | |gr1= Sounds | ||
| Returns an array containing the names and values of environmental variables that can be used in simple expressions when configuring sounds. | |descr= Returns an array containing the names and values of environmental variables that can be used in simple expressions when configuring sounds. | ||
| | |s1= [[getAllEnvSoundControllers]] position | ||
|[[ | |p1= position: [[Position]] | ||
|r1= [[Array]] in format [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order: | |||
* "rain" | |||
* "night" | |||
* "wind" | |||
* "daytime" | |||
* "meadows" | |||
* "trees" | |||
* "houses" | |||
* "forest" | |||
* "sea" | |||
* "coast" | |||
* "altitudeGround" | |||
* "altitudeSea" | |||
* "shooting" | |||
* "deadbody" | |||
* "fog" | |||
< | |x1= <code>[[getAllEnvSoundControllers]] [[position]] [[player]]; | ||
{{codecomment|/* | |||
returns e.g | |||
[ | |||
["rain",0], | |||
["night",0], | |||
["wind",0.161588], | |||
... | |||
] | |||
<nowiki/>*/}}</code> | |||
|seealso= [[selectBestPlaces]], [[getSoundController]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]], [[Arma 3: Sound]] | |||
}} | |||
Revision as of 18:21, 12 June 2021
Description
- Description:
- Returns an array containing the names and values of environmental variables that can be used in simple expressions when configuring sounds.
- Groups:
- Sounds
Syntax
- Syntax:
- getAllEnvSoundControllers position
- Parameters:
- position: Position
- Return Value:
- Array in format [["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
- "rain"
- "night"
- "wind"
- "daytime"
- "meadows"
- "trees"
- "houses"
- "forest"
- "sea"
- "coast"
- "altitudeGround"
- "altitudeSea"
- "shooting"
- "deadbody"
- "fog"
Examples
- Example 1:
getAllEnvSoundControllers position player; /* returns e.g [ ["rain",0], ["night",0], ["wind",0.161588], ... ] */
Additional Information
- See also:
- selectBestPlacesgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCountArma 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