LSValmont 789 Posted September 14, 2019 Fellow scripts, do you happen to know a way to tell via scripting commands if a particular uniform you are wearing belongs to an enemy faction? Perhaps a combination of: _uniform = uniform _unit; _canUse = _unit isUniformAllowed _uniform; if (!(_canUse)) then {hint "wearing enemy uniform"}; The problem is that I don't know if isUniformAllowed will also return false for a civilian uniform or only for enemy faction's uniforms? Perhaps there is a better way because knowing the exact faction the uniform the unit is wearing belongs to would be even better for my script's needs. Share this post Link to post Share on other sites
Larrow 2801 Posted September 14, 2019 You can get the default soldier for the uniform and take their side and faction. I'm not sure its 100% reliable. _uniform = "U_B_CTRG_1"; _uniformClass = getText( configFile >> "CfgWeapons" >> _uniform >> "ItemInfo" >> "uniformClass" ); _soldierCfg = configFile >> "CfgVehicles" >> _uniformClass; _side = getNumber( _soldierCfg >> "side" ) call BIS_fnc_sideType; _faction = getText( _soldierCfg >> "faction" ); I done something similar for my blacklist Arsenal to try and determine side/faction gear. 1 Share this post Link to post Share on other sites