mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
464ab0cefb
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
16 lines
436 B
Plaintext
16 lines
436 B
Plaintext
[
|
|
QGVAR(enabled), "CHECKBOX",
|
|
[LSTRING(setting), LSTRING(setting_tooltip)],
|
|
[LELSTRING(Common,CategoryUncategorized), LLSTRING(DisplayName)],
|
|
true,
|
|
true, {
|
|
params ["_enabled"];
|
|
|
|
if (_enabled) then {
|
|
[ACE_player, "isPlayer"] call EFUNC(common,muteUnit);
|
|
} else {
|
|
[ACE_player, "isPlayer"] call EFUNC(common,unmuteUnit);
|
|
};
|
|
}, true // Needs mission restart
|
|
] call CBA_fnc_addSetting;
|