enableAudioFeature: Difference between revisions
Jump to navigation
Jump to search
BrettMayson (talk | contribs) mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2") |
||
Line 16: | Line 16: | ||
|p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}} | |p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}} | ||
|p2= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable | |p2= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable | ||
|r1= [[Boolean]] - | |r1= [[Boolean]] - previous state | ||
|s2= object [[enableAudioFeature]] [feature, enable] | |s2= object [[enableAudioFeature]] [feature, enable] | ||
Line 24: | Line 24: | ||
|p22= feature: [[String]] - {{hl|"building_interior"}} or {{hl|"building_exterior"}} only (mutually exclusive) | |p22= feature: [[String]] - {{hl|"building_interior"}} or {{hl|"building_exterior"}} only (mutually exclusive) | ||
|p23= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable | |p23= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable | ||
|r2= [[Boolean]] - | |r2= [[Boolean]] - previous state | ||
Revision as of 15:45, 8 November 2023
Description
- Description:
- Enable or disable an audio feature. Available features are "lowpass" and "building_interior".
Since 2.14 it is possible to enable "building_interior" on an object placed in a building.
Since 2.14 if 'enable' argument is omitted, the command returns the current state of the feature. - Multiplayer:
- To use this command on objects in multiplayer, remoteExec it globally with JIP queue enabled:
- Groups:
- Sounds
Syntax
- Syntax:
- enableAudioFeature [feature, enable]
- Parameters:
- feature: String - "lowpass" or "building_interior"
- enable: Boolean - (Optional) true enable, false, disable
- Return Value:
- Boolean - previous state
Alternative Syntax
- Syntax:
- object enableAudioFeature [feature, enable]
- Parameters:
- object: Object
- feature: String - "building_interior" or "building_exterior" only (mutually exclusive)
- enable: Boolean - (Optional) true enable, false, disable
- Return Value:
- Boolean - previous state
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- insideBuilding
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