Last active
October 31, 2016 17:28
-
-
Save jameslkingsley/1bd2c662a49c9b85e104804014203ead to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ["Air", "init", { | |
| private _vehicle = _this select 0; | |
| { | |
| private _name = getText (_x >> "name"); | |
| _vehicle addAction [format ["Damage %1", _name], { | |
| (_this select 0) setHit [(_this select 3), 1]; | |
| }, _name]; | |
| } forEach ("true" configClasses (configFile >> "CfgVehicles" >> typeOf _vehicle >> "HitPoints")); | |
| }, true, [], true] call CBA_fnc_addClassEventHandler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment