Skip to content

Instantly share code, notes, and snippets.

@jameslkingsley
Last active October 31, 2016 17:28
Show Gist options
  • Select an option

  • Save jameslkingsley/1bd2c662a49c9b85e104804014203ead to your computer and use it in GitHub Desktop.

Select an option

Save jameslkingsley/1bd2c662a49c9b85e104804014203ead to your computer and use it in GitHub Desktop.
["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