setCustomSoundController: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.85|= Game version _________________...") |
No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set value of specified custom sound controller.|= Description | | Set value of specified custom sound controller. Return true if value was set to the controller, false if not|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 14: | Line 14: | ||
|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"|= | ||
|p3 = value: [[Number]] - desired value|= | |p3 = value: [[Number]] - desired value|= | ||
| [[ | | [[Bool]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>[[setCustomSoundController]] [[[cameraon],"CustomSoundController1",12]];</code> | |x1 = <code>[[setCustomSoundController]] [[[cameraon],"CustomSoundController1",12]];</code> |
Revision as of 12:31, 9 October 2018
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
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