Last active
February 26, 2016 18:35
-
-
Save jmlane/8b72e68e80ca9475b0a5 to your computer and use it in GitHub Desktop.
Implementing ASG-style support menu earplugs in Arma 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (earPlugIn) then { | |
.1 fadeSound 1; | |
earPlugIn = false; | |
} else { | |
1 fadeSound .04; | |
earPlugIn = true; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CfgCommunicationMenu { | |
class earplugToggle { | |
text = "Toggle Earplugs"; | |
submenu = ""; | |
expression = "_this execVM 'commItem_earplugsToggle.sqf';"; | |
cursor = ""; | |
enable = "1"; | |
removeAfterExpressionCall = 0; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
earPlugIn = false; | |
[player, "earplugToggle", nil, nil, ""] call BIS_fnc_addCommMenuItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment