getAllEnv3DSoundControllers: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 17: | Line 17: | ||
|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| | ||
* | * {{hl|"rain"}} | ||
* | * {{hl|"night"}} | ||
* | * {{hl|"wind"}} | ||
* | * {{hl|"daytime"}} | ||
* | * {{hl|"distance"}} | ||
* | * {{hl|"shooting"}} | ||
* | * {{hl|"meadows"}} | ||
* | * {{hl|"trees"}} | ||
* | * {{hl|"houses"}} | ||
* | * {{hl|"forest"}} | ||
* | * {{hl|"sea"}} | ||
* | * {{hl|"altitudeSea"}} | ||
* | * {{hl|"altitudeGround"}} | ||
* | * {{hl|"rainDrops"}} | ||
* | * {{hl|"yearTime"}} | ||
* | * {{hl|"ambientTemp"}} | ||
* | * {{hl|"snow"}} | ||
|shrink= y | |shrink= y | ||
}} | }} |
Revision as of 23:44, 15 November 2021
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.
- Groups:
- Sounds
Syntax
- Syntax:
- getAllEnv3DSoundControllers object
- Parameters:
- object: Object - Environmental sound source like a tree or a house, see allEnv3DSoundSources
- Return Value:
- Array in format [["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
- "rain"
- "night"
- "wind"
- "daytime"
- "distance"
- "shooting"
- "meadows"
- "trees"
- "houses"
- "forest"
- "sea"
- "altitudeSea"
- "altitudeGround"
- "rainDrops"
- "yearTime"
- "ambientTemp"
- "snow"
Examples
- Example 1:
getAllEnv3DSoundControllers _thatTreeOverThere; /* returns e.g [ ["rain",0], ["night",0], ["wind",0.161588], ... ] */
Additional Information
- See also:
- getAllEnvSoundControllersgetEnv3DSoundControllerallEnv3DSoundSourcesselectBestPlacesgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCountArma 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