Description
Get the state of or enable/disable an audio feature. Available features are "lowpass" and "building_interior".
- Arma 3 v2.14 it is possible to enable
"building_interior"on an object placed in a building. - Arma 3 v2.14 if 'enable' argument is omitted, the command returns the current state of the feature.
Syntax
Syntax 1
enableAudioFeature [feature, enable]
Parameters:
feature: String -"lowpass"or"building_interior"enable: Boolean - (Optional, getter if not provided) true enable, false, disable
Returns: Boolean - previous state
Syntax 2
since arma3 2.14
object enableAudioFeature [feature, enable]
Parameters:
object: Objectfeature: String -"building_interior"or"building_exterior"only (mutually exclusive)enable: Boolean - (Optional, getter if not provided) true enable, false, disable
Returns: Boolean - previous state
Examples
Example 1
private _prevState = enableAudioFeature ["lowpass", true];
Example 2
private _prevState = pallet enableAudioFeature ["building_interior", true];
Example 3
private _currState = pallet enableAudioFeature ["building_interior"];
private _prevState = pallet enableAudioFeature ["building_interior", !_currState];
hint str (_currState == _prevState); // true
private _currState = pallet enableAudioFeature ["building_interior"];
hint str (_currState == _prevState); // false
Multiplayer
To use this command on objects in multiplayer, remoteExec it globally with JIP queue enabled:
[_obj, ["building_interior", true]] remoteExec ["enableAudioFeature", 0, _obj];