enableAudioFeature: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add getter information) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 20: | Line 20: | ||
|p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}} | |p1= feature: [[String]] - {{hl|"lowpass"}} or {{hl|"building_interior"}} | ||
|p2= enable: [[Boolean]] - (Optional) [[true]] enable, [[false]], disable | |p2= enable: [[Boolean]] - (Optional, getter if not provided) [[true]] enable, [[false]], disable | ||
|r1= [[Boolean]] - previous state | |r1= [[Boolean]] - previous state |
Latest revision as of 11:41, 1 April 2024
Description
- Description:
- Get the state of or enable/disable an audio feature. Available features are "lowpass" and "building_interior".
- 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: Boolean - (Optional, getter if not provided) 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, getter if not provided) true enable, false, disable
- Return Value:
- Boolean - previous state
Examples
- Example 1:
- Example 2:
- 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
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