getSoundController: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Arma 3 ([^ACHJKLMTZ|])([^|]+)\]\]" to "Arma 3: $1$2")
m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
Line 10: Line 10:


| vehicle '''getSoundController''' controller
| vehicle '''getSoundController''' controller
|p1 = vehicle: [[Object]] - must be a vehicle (does not work on soldiers)
|p1= vehicle: [[Object]] - must be a vehicle (does not work on soldiers)
|p2 = controller: [[String]] - name of sound controller, for example "rpm" or "thrust".
|p2= controller: [[String]] - name of sound controller, for example "rpm" or "thrust".
| [[Number]]
| [[Number]]
|x1 = <code>[[vehicle]] [[player]] [[getSoundController]] "rpm"; //600</code>
|x1= <code>[[vehicle]] [[player]] [[getSoundController]] "rpm"; //600</code>


|seealso= [[Arma 3: Sound]], [[getAllSoundControllers]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]]
|seealso= [[Arma 3: Sound]], [[getAllSoundControllers]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]]

Revision as of 00:30, 11 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Sounds

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object - must be a vehicle (does not work on soldiers)
controller: String - name of sound controller, for example "rpm" or "thrust".
Return Value:
Return value needed

Examples

Example 1:
vehicle player getSoundController "rpm"; //600

Additional Information

See also:
Arma 3: SoundgetAllSoundControllersgetSoundControllerResultgetEnvSoundControllergetAllEnvSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCount

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