Skip to content

Instantly share code, notes, and snippets.

@JonBons
Last active August 29, 2015 14:06
Show Gist options
  • Save JonBons/ae5d4a595ccb2dcee5d5 to your computer and use it in GitHub Desktop.
Save JonBons/ae5d4a595ccb2dcee5d5 to your computer and use it in GitHub Desktop.
Find all weapons with prefix in their classname and proper scope.
("if (['hlc_', toLower (configName _x)] call BIS_fnc_inString && (getNumber (_x >> 'scope')) > 1) then {diag_log [getText (_x >> 'displayName'), configName _x]; true}; false" configClasses (configFile >> "CfgWeapons"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment