enableAudioFeature: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
|gr1= Sounds | |gr1= Sounds | ||
|descr= Enable/disable an audio feature, features are: "lowpass", "building_interior". | |descr= Enable/disable an audio feature, features are: "lowpass", "building_interior". Since v2.14 it is possible to enable "building_interior" on an object placed in a building. | ||
|s1= [[enableAudioFeature]] [feature, enable] | |s1= [[enableAudioFeature]] [feature, enable] | ||
Line 12: | Line 12: | ||
|r1= [[Boolean]] - Previous state | |r1= [[Boolean]] - Previous state | ||
| | |s2= object [[enableAudioFeature]] [feature, enable] | ||
|s2since= Arma3 2.14 | |||
|seealso= | |p21= object: [[Object]] | ||
|p22= feature: [[String]] | |||
|p23= enable: [[Boolean]] - [[true]] enable, [[false]], disabled | |||
|r2= [[Boolean]] - Previous state | |||
|x1= <sqf>_prevState = enableAudioFeature ["lowpass", true];</sqf> | |||
|x2= <sqf>_prevState = pallet enableAudioFeature ["building_interior", true];</sqf> | |||
|seealso= [[insideBuilding]] | |||
}} | }} |
Revision as of 21:40, 29 January 2023
Description
- Description:
- Enable/disable an audio feature, features are: "lowpass", "building_interior". Since v2.14 it is possible to enable "building_interior" on an object placed in a building.
- Groups:
- Sounds
Syntax
- Syntax:
- enableAudioFeature [feature, enable]
- Parameters:
- feature: String
- enable: Boolean - true enable, false, disabled
- Return Value:
- Boolean - Previous state
Alternative Syntax
- Syntax:
- object enableAudioFeature [feature, enable]
- Parameters:
- object: Object
- feature: String
- enable: Boolean - true enable, false, disabled
- 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