Skip to content

Instantly share code, notes, and snippets.

@JonBons
Created December 20, 2014 22:21
Show Gist options
  • Save JonBons/e360b51baa01296fdb68 to your computer and use it in GitHub Desktop.
Save JonBons/e360b51baa01296fdb68 to your computer and use it in GitHub Desktop.
Find all magazines with base and base magazines and outputs classname.
"if (configName (inheritsFrom _x) == 'Default' || configName (inheritsFrom (inheritsFrom _x)) == 'Default') then { if (configName (inheritsFrom (inheritsFrom _x)) != 'Default') then {diag_log format['class %1;', configName _x]; true} else {diag_log format['class %1: %2 {};', configName _x, configName (inheritsFrom _x)]; true}; false};" configClasses (configFile >> "CfgMagazines");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment