Add clicks when activating/deactivating the detector

This commit is contained in:
esteldunedain 2016-07-07 11:17:09 -03:00
parent 7a25c53dd3
commit 244bdb093d
2 changed files with 8 additions and 0 deletions

View File

@ -21,4 +21,8 @@ params ["_unit", "_detectorType"];
_unit setVariable [format[QGVAR(enable_%1), _detectorType], false];
if (_unit == ACE_player) then {
playSound "ACE_Sound_Click";
};
[QGVAR(detectorDisabled), [_unit, _detectorType]] call CBA_fnc_localEvent;

View File

@ -21,4 +21,8 @@ params ["_unit", "_detectorType"];
_unit setVariable [format[QGVAR(enable_%1), _detectorType], true];
if (_unit == ACE_player) then {
playSound "ACE_Sound_Click";
};
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;