Vanilla Arma 3 Framework for adding keybinds that can be modified by players. Allows mission makers a simplified way to create new keybinds while allowing users the ability to modify said keybinds to other keys.
EarplugsKeybindID = [
"Earplugs", //Keybind display name
"Put in your virtual earplugs", //Keybind description
207, //Keybind DIKKey
{1 fadeSound 0.3;}, //Keybind code on execute
false, //Shift?
false, //Ctrl?
false, //Alt?
false //Zeus Keybind?
] call ZAM_fnc_newKeybind;
//Creates Keybind on END key that fades sound.
//Returns ID of keybind for removal.
[EarplugsKeybindID] call ZAM_fnc_removeKeybind;
//Removes the previously created earplugs keybind.
//Will return true if keybind was removed, false if it did not exist.
A3-KeybindFramework is licensed under the (MIT License).