mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add clicks when activating/deactivating the detector
This commit is contained in:
parent
7a25c53dd3
commit
244bdb093d
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user