setCustomSoundController: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set value of specified custom sound controller. Return true if value was set to the controller, false if not|= Description
| Set value of specified custom sound controller. Return true if value was set to the controller, false if not|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''setCustomSoundController''' [vehicle,controller name, value]|= Syntax
| '''setCustomSoundController''' [vehicle,controller name, value]|SYNTAX=
|p1 = vehicle: [[Object]] - must be a transport type vehicle (doesn't work on characters or buildings)|=
|p1 = vehicle: [[Object]] - must be a transport type vehicle (doesn't work on characters or buildings)|=
|p2 = controller name: [[String]] - name of custom sound controller. Need to be full string like i.e. "CustomSoundController1". Currently you can pick from "CustomSoundController1" to "CustomSoundController32"|=
|p2 = controller name: [[String]] - name of custom sound controller. Need to be full string like i.e. "CustomSoundController1". Currently you can pick from "CustomSoundController1" to "CustomSoundController32"|=
Line 18: Line 18:
|x1 = <code>[[setCustomSoundController]] [ [[cameraOn]] ,"CustomSoundController1",12];</code>
|x1 = <code>[[setCustomSoundController]] [ [[cameraOn]] ,"CustomSoundController1",12];</code>
<pre>Above line will change value of CustomSoundController1 to 12
<pre>Above line will change value of CustomSoundController1 to 12
</pre> |= Example1
</pre> |EXAMPLE1=


____________________________________________________________________________________________
____________________________________________________________________________________________
| [[Arma 3 Sound]], [[getCustomSoundController]], [[getCustomSoundControllerCount]]  |= See also
| [[Arma 3 Sound]], [[getCustomSoundController]], [[getCustomSoundControllerCount]]  |SEEALSO=  
}}
}}



Revision as of 15:46, 7 April 2019

Hover & click on the images for description

Description

Description:
Set value of specified custom sound controller. Return true if value was set to the controller, false if not
Groups:
Uncategorised

Syntax

Syntax:
setCustomSoundController [vehicle,controller name, value]
Parameters:
vehicle: Object - must be a transport type vehicle (doesn't work on characters or buildings)
controller name: String - name of custom sound controller. Need to be full string like i.e. "CustomSoundController1". Currently you can pick from "CustomSoundController1" to "CustomSoundController32"
value: Number - desired value
Return Value:
Bool

Examples

Example 1:
setCustomSoundController [ cameraOn ,"CustomSoundController1",12];
Above line will change value of CustomSoundController1 to 12

Additional Information

See also:
Arma 3 SoundgetCustomSoundControllergetCustomSoundControllerCount

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

Notes

Bottom Section