getAllSoundControllers: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.64 | |||
| | |gr1= Sounds | ||
|descr= Returns an array containing names and values of the sound controllers that can be used in simple expressions when configuring sounds. | |||
| | |s1= [[getAllSoundControllers]] vehicle | ||
| | |p1= vehicle: [[Object]] - a vehicle - this does not work on humans | ||
|r1= [[Array]] - [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...] | |r1= [[Array]] - [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...] | ||
|x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]]; | |x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]]; | ||
{{codecomment|/* | |||
</ | returns e.g | ||
[ | |||
["rpm",0], | |||
["randomizer",0.874332], | |||
["speed",0], | |||
["thrust",0], | |||
... | |||
] | |||
<nowiki/>*/}}</code> | |||
|seealso= [[Arma 3: Sound]], [[getSoundController]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]] | |seealso= [[Arma 3: Sound]], [[getSoundController]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]] | ||
}} | }} | ||
Revision as of 19:26, 12 June 2021
Description
- Description:
- Returns an array containing names and values of the sound controllers that can be used in simple expressions when configuring sounds.
- Groups:
- Sounds
Syntax
- Syntax:
- getAllSoundControllers vehicle
- Parameters:
- vehicle: Object - a vehicle - this does not work on humans
- Return Value:
- Array - [["controllerA", valueA], ["controllerB", valueB], ...]
Examples
- Example 1:
getAllSoundControllers vehicle player; /* returns e.g [ ["rpm",0], ["randomizer",0.874332], ["speed",0], ["thrust",0], ... ] */
Additional Information
- See also:
- Arma 3: SoundgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllEnvSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCount
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