Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SamJUK/e1e474da56d31e73a292ec29828033bc to your computer and use it in GitHub Desktop.
Save SamJUK/e1e474da56d31e73a292ec29828033bc to your computer and use it in GitHub Desktop.
/*
1ST var = Classname
Returns: "Uniform"||"Vest"||"Bag"||False
*/
Life_Fnc_ClothingType = {
_t = false;
_configParents = [(configFile >> "CfgWeapons" >> (_this select 0),true ] call BIS_fnc_returnParents;
if ("Uniform_Base" in _configParents)then {_t = "Uniform"};
if ("Vest_Camo_Base" in _configParents)then {_t = "Vest"};
if ("Bag_Base" in _configParents)then {_t = "Bag"};
_t
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment