getAllSoundControllers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.64


|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.


|gr1= Sounds
|s1= [[getAllSoundControllers]] vehicle


| Returns an array containing names and values of the sound controllers that can be used in simple expressions when configuring sounds.
|p1= vehicle: [[Object]] - a vehicle - this does not work on humans


| '''getAllSoundControllers''' vehicle
|p1= vehicle: [[Object]] - must be a vehicle (does not work on soldiers)
|r1= [[Array]] - [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...]
|r1= [[Array]] - [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...]


|x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]];</code>
|x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]];
<pre>Result: [["rpm",0],["randomizer",0.874332],["speed",0],["thrust",0],...]]
{{codecomment|/*
</pre>
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]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}

Revision as of 19:26, 12 June 2021

Hover & click on the images for description

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