enableAudioFeature: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
|gr1= Sounds
|gr1= Sounds


|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. When used on object in multiplayer, [[remoteExec]] the command globally with JIP queue enabled, for example <sqf>[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];</sqf>
|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. When used on object in multiplayer, [[remoteExec]] the command globally with JIP queue enabled, for example <sqf>[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];</sqf> Since Arma 2.14 if 'enable' argument is omitted, the command returns the current state of the feature.
|s1= [[enableAudioFeature]] [feature, enable]
|s1= [[enableAudioFeature]] [feature, enable]


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


Line 16: Line 16:


|p21= object: [[Object]]  
|p21= object: [[Object]]  
|p22= feature: [[String]] - "building_interior" only
|p22= feature: [[String]] - "building_interior" or "building_exterior" only (mutually exclusive).
|p23= enable: [[Boolean]] - [[true]] enable, [[false]], disabled
|p23= enable (Optional): [[Boolean]] - [[true]] enable, [[false]], disabled
|r2= [[Boolean]] - Previous state
|r2= [[Boolean]] - Previous state



Revision as of 18:17, 3 February 2023

Hover & click on the images for description

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. When used on object in multiplayer, remoteExec the command globally with JIP queue enabled, for example
[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];
Since Arma 2.14 if 'enable' argument is omitted, the command returns the current state of the feature.
Groups:
Sounds

Syntax

Syntax:
enableAudioFeature [feature, enable]
Parameters:
feature: String - "lowpass", "building_interior"
enable (Optional): Boolean - true enable, false, disabled
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, disabled
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