enableAudioFeature: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (Some formatting) |
||
Line 5: | Line 5: | ||
|gr1= Sounds | |gr1= Sounds | ||
|descr= Enable | |descr= Enable or disable an audio feature. Available features are {{hl|"lowpass"}} and {{hl|"building_interior"}}.<br> | ||
Since {{GVI|arma3|2.14}} it is possible to enable {{hl|"building_interior"}} on an object placed in a building.<br> | |||
Since {{GVI|arma3|2.14}} if 'enable' argument is omitted, the command returns the current state of the feature. | |||
|mp= To use this command on objects in multiplayer, [[remoteExec]] it globally with JIP queue enabled: | |||
<sqf>[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];</sqf> | |||
|s1= [[enableAudioFeature]] [feature, enable] | |s1= [[enableAudioFeature]] [feature, enable] | ||
|p1= feature: [[String]] - "lowpass" | |p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}} | ||
|p2= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], | |p2= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], disable | ||
|r1= [[Boolean]] - Previous state | |r1= [[Boolean]] - Previous state | ||
|s2= object [[enableAudioFeature]] [feature, enable] | |s2= object [[enableAudioFeature]] [feature, enable] | ||
|s2since= | |s2since= arma3 2.14 | ||
|p21= object: [[Object]] | |p21= object: [[Object]] | ||
|p22= feature: [[String]] - "building_interior" or "building_exterior" only (mutually exclusive) | |p22= feature: [[String]] - {{hl|"building_interior"}} or {{hl|"building_exterior"}} only (mutually exclusive) | ||
|p23= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], | |p23= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], disable | ||
|r2= [[Boolean]] - Previous state | |r2= [[Boolean]] - Previous state | ||
Revision as of 17:21, 5 September 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 (Optional): Boolean - 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 (Optional): Boolean - 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