mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Hearing - Fix volume being force updated when loadouts are set on AI (#10044)
* Update XEH_preInit.sqf * Update XEH_preInit.sqf
This commit is contained in:
parent
be9797d11d
commit
be61424fed
@ -13,8 +13,11 @@ PREP_RECOMPILE_END;
|
||||
if (_extendedInfo getOrDefault ["ace_earplugs", false]) then {
|
||||
_unit setVariable ["ACE_hasEarPlugsIn", true, true];
|
||||
|
||||
// Only force update volume if unit is a player (including remote controlled)
|
||||
if (_unit call EFUNC(common,isPlayer)) then {
|
||||
[QGVAR(updateVolume), [[true]], _unit] call CBA_fnc_targetEvent;
|
||||
};
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
["CBA_loadoutGet", {
|
||||
|
Loading…
Reference in New Issue
Block a user