getAllEnvSoundControllers: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (format) |
No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns | | Returns an array containing the names and values of environmental variables that can be used in simple expressions when configuring sounds.|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''getAllEnvSoundControllers''' position |= Syntax | | '''getAllEnvSoundControllers''' position |= Syntax | ||
|p1 = position: [[Position]].|= | |p1 = position: [[Position]].|= | ||
| [[Array]] |= Return value | | [[Array]] - ["controllerA", valueA], ["controllerB", valueB] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>[[getAllEnvSoundControllers]] [[position]] [[player]];</code> | |x1 = <code>[[getAllEnvSoundControllers]] [[position]] [[player]];</code> | ||
<pre>Result: | <pre>Result: | ||
[["rain",0],["night",0],["wind",0.161588], | [["rain",0],["night",0],["wind",0.161588],...] | ||
</pre> |= Example1 | </pre> |= Example1 | ||
| [[ | | [[Arma 3 Sound]], [[getSoundController]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllSoundControllers]] |= See also | ||
}} | }} |
Revision as of 19:45, 4 July 2016
Description
- Description:
- Returns an array containing the names and values of environmental variables that can be used in simple expressions when configuring sounds.
- Groups:
- Uncategorised
Syntax
- Syntax:
- getAllEnvSoundControllers position
- Parameters:
- position: Position.
- Return Value:
- Array - ["controllerA", valueA], ["controllerB", valueB]
Examples
- Example 1:
getAllEnvSoundControllers position player;
Result: [["rain",0],["night",0],["wind",0.161588],...]
Additional Information
- See also:
- Arma 3 SoundgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllSoundControllers
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
[[Category:Introduced with arma3dev version 1.63]][[ Category: arma3dev: New Scripting Commands | GETALLENVSOUNDCONTROLLERS]][[ Category: arma3dev: Scripting Commands | GETALLENVSOUNDCONTROLLERS]]