enableAudioFeature: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some formatting)
mNo edit summary
Line 15: Line 15:


|p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}}
|p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}}
|p2= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], disable
|p2= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable
|r1= [[Boolean]] - Previous state
|r1= [[Boolean]] - Previous state


Line 23: Line 23:
|p21= object: [[Object]]  
|p21= object: [[Object]]  
|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 (Optional): [[Boolean]] - [[true]] enable, [[false]], disable
|p23= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable
|r2= [[Boolean]] - Previous state
|r2= [[Boolean]] - Previous state



Revision as of 21:48, 28 September 2023

Hover & click on the images for description

Description

Description:
Enable or disable an audio feature. Available features are "lowpass" and "building_interior".
Since Arma 3 logo black.png2.14 it is possible to enable "building_interior" on an object placed in a building.
Since Arma 3 logo black.png2.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:
[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];
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:
_prevState = enableAudioFeature ["lowpass", true];
Example 2:
_prevState = pallet enableAudioFeature ["building_interior", true];

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