Created
November 2, 2016 10:30
-
-
Save SamJUK/e1e474da56d31e73a292ec29828033bc to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
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